Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFLDSTATE Problem
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00476533
Message ID:
00477635
Views:
28
I kind of figured that wouldn't be enough....

well, here's an example:

I have a view that has two newly added records in it, once it hits that SETFLDSTATE() on the first record the view looks like it has hundreds of records with bad data (unreadable characters) in it. At that time, RECNO() returns 0, EOF() returns .F., BOF() returns .F.

>>Paul,
>>
>>I have this update (although I don't remember it). Actually, the problem doesn't occur until the data behavior class (cdatabehavior) tries to save. In it's Save method there is code that checks to see if the cursor is table buffered. If so, it scans through all records, checks to see if the record is being added, and if so uses SETFLDSTATE() on it's primary key to set it to a 4 (new and modified). In my case, when the first SETFLDSTATE() is issued, my cursor (view) becomes corrupted.
>>
>
> Hmm...What happens when it becomes "currupted"? I'm not exactly sure what you mean by that.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Reply
Map
View

Click here to load this message in the networking platform