Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear mover lists
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Clear mover lists
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01151757
Message ID:
01151757
Views:
80
This is my first time making use of the _SuperMover class and I have a couple questions I'm sure others have already solved.

My form consists of a drop down list of valid departements for a user. When the user selects a department, I fill the available choices lists for the mover class with data based on a query.
  SELECT StatusDesc FROM CurList1 INTO ARRAY laChoices
  thisform.pageframe1.page1._suPERMOVER1.initchoices(@laChoices)
The first question is, not all departments will have records returned from the query, and this causes an error because the array is invalid, so how to I clear the lists (both of them).

The second question is, I have a next button on the form that is disabled until they have at least one option selected in the selected part of the mover list. I put the following code in the form's refresh method, but it didn't seem to have any effect.
thisform.pageframe1.page1.command1.Enabled=IIF(thisform.pageframe1.page1._suPERMOVER1.lstRight.ListCount>0,.t.,.f.)
Thanks for any pointers

Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform