Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of a form with a mover
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Strange behavior of a form with a mover
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01588169
Message ID:
01588169
Vues:
91
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
Répondre
Fil
Voir

Click here to load this message in the networking platform