Array of Variant

efassettaefassetta Member Posts: 53
Hello to everybody,
i've a problem managing array of variant.

I have an array ARR 4;3 that has to contain 1 code data type value and 3 decimal data type value. When i try to test for example if the ARR[1,1] has no value, the system return this error

Tha variant is empty or an unknown value has been assigned to it ....

To test i use this instruction:
IF FORMAT(BranchArray[1,1]) = '' THEN
....

I tried also before to assign the value to another variable but the system gives to me the same error

Var2Code := FORMAT(BranchArray[1,1]); ---> where Var2Code is a variable code data type..

Do you have an idea?

Thank's in advance to everybody :D

Comments

  • KishormKishorm Member Posts: 921
    Use BranchArray[1,1].ISCODE OR BranchArray[2,1].ISDECIMAL to see if a Code or Decimal value has been assigned
Sign In or Register to comment.