Hi.
I one program I use getfldstate(-1) to have the status of all the fields on the row set. Lets say that the getfldstate(-1) return 33 characters, the number of fields in the row is 32. If I then try to put all the fields in an array, i'll have to do this ;
WITH THIS
DIMENSION .aEdtFields[LEN(GETFLDSTATE(-1, lcInvView)) -1,2]
FOR lnMi = 1 TO LEN(GETFLDSTATE(-1, lcInvView)) -1
.aEdtFields[lnMi,1] = SUBSTR(GETFLDSTATE(-1, lcInvView), lnMi,1)
.aEdtFields[lnMi,2] = EVALUATE(lcInvView + "." + FIELD(lnMi,lcInvView))
NEXT
.
.
.
ENDWITH
The question is : is it a normal behaviour that getfldstate(-1) returns one more position than the correct count of fields on the row?
I'm using VFP 8.0 on XP hom
Thanks in advance.
Nro
I one program I use getfldstate(-1) to have the status of all the fields on the row set. Lets say that the getfldstate(-1) return 33 characters, the number of fields in the row is 32. If I then try to put all the fields in an array, i'll have to do this ;
WITH THIS
DIMENSION .aEdtFields[LEN(GETFLDSTATE(-1, lcInvView)) -1,2]
FOR lnMi = 1 TO LEN(GETFLDSTATE(-1, lcInvView)) -1
.aEdtFields[lnMi,1] = SUBSTR(GETFLDSTATE(-1, lcInvView), lnMi,1)
.aEdtFields[lnMi,2] = EVALUATE(lcInvView + "." + FIELD(lnMi,lcInvView))
NEXT
.
.
.
ENDWITH
The question is : is it a normal behaviour that getfldstate(-1) returns one more position than the correct count of fields on the row?
I'm using VFP 8.0 on XP hom
Thanks in advance.
Nro