Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming your field delimiter is a comma and that your array is named Record
LenFirstField = Instr(Record(X), ",") - 1 where X is the loop counter (record number). If you need this to be more general, here is how to LenOfField_F = Len(Split(Record(X), ",")(F - 1)) where F is 1 for the first field, 2 for the second, etc. and X is as defined above. Rick Is it possible to check the length of each item in a specific field in an array? Is so, how? I am building an array but I want to check the length of a specific field for each item in the array. For example, each "record" in my array has 4 fields. I want to check the length of the first field in each "record". If it is greater than 0, I will do one action and if it is zero I will do another action. I'm using this in an edit to be verify the user has not selected a record where the first field is blank. Thanks for the help. -- JT |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Second item in list using array | Excel Worksheet Functions | |||
Getting a the position of a single item in an array | Excel Programming | |||
Fastest way to find item in an array. | Excel Programming | |||
Lookup Multiple Occurrence Of Item In Array | Excel Programming | |||
does an item belong to an array? | Excel Programming |