Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can gldfldstate(-1) return NULL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00683233
Message ID:
00683234
Views:
42
This message has been marked as the solution to the initial question of the thread.
>Just wondering if there is a situation where getfldState(-1) can return a NULL value? I have an error in a "data audit trail" program and going through the memory vars at the time of the error shows that the var (lcFieldState) is type "N", but no value is shown (so it seems to be null?).
>
>I looked in the help file and I don't have my hacker's guide with me!
>
>Kevin

Kevin,

Yes, getfldate(-1) can return null

As far as I can see you get a Null return if you are beyond the last record of a table/cursor

go bottom
skip
?eof() && TRUE
?getfldstate(-1) && Null

Getfldstate() returns info about the record you are on.
eof() means that you are on no record at all and hence its return has no meaning
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform