Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with getfldstate(-1) len

Status
Not open for further replies.

Nro

Programmer
May 15, 2001
337
CA
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
 
Thanks Ramani. I've read MS doc but it wasn't that clear.

Nro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top