>>I just upgraded to VFP8 and I seem to have found another problem. There is a new parameter (nFlags) for the FIELD function that determines whether the field name or caption is returned. From what I see, it looks like the default is to return the caption, which is different than VFP7 and my code is crashing. This doesn't make sense - can anyone explain it?
>
>By default (w/o third parameter) the FIELD() function returns field name. Can you provide more details?
My code looks like this:
lcFldState=SUBSTR(GETFLDSTATE(-1),2)
lcField=FIELD(AT("2",lcFldState,1)) (where AT("2",lcFldState,1) returns 42)
I recompiled everything in VFP8. But when I step through the program, the value of lcField is the field's caption, not its name.
Elyse Pomerantz