Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear mover lists
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
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:
01405691
Views:
37
What class is this?

>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
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform