Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior of a form with a mover
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Strange behavior of a form with a mover
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01588169
Message ID:
01588169
Views:
92
Hi everybody,

In a form with the mover listboxes I have a strange behavior. In the Save code we first delete all rows and then go through all items in the selected items list and add them back. This seems to work OK except for the case when I remove all items (nothing is selected). In this case Save seems to be doing nothing. However, if I attempt to trace the code, it works fine and I end up with empty table (as it should be).

Do you see what may be the problem?

Thanks in advance.

UPDATE. Found the solution. The table was at EOF() and GetFldState was returning NULL which was not checked in the class code. I added code to go top if the table is at EOF and this resolved the issue.
If it's not broken, fix it until it is.


My Blog
Reply
Map
View

Click here to load this message in the networking platform