Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Your class
Message
 
 
To
08/08/2000 04:27:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00401794
Message ID:
00402179
Views:
14
>>I want to insert the selected item into an array
>>In your code where can i do that ?
>>
>>Thanks a lot
>
>
With the help of Nadya + email I can understand this is about MultiSelectGrid. Assuming you have placed commandbutton and created form array property aSelected as Nadya suggested I have an additional piece of code that might help :
>
dimension thisform.aSelected[1]
>thisform.aSelected = .f.
>* Above 2 lines are needed in case SQL returns nothing
>* Then aSelected contents would be what they were before
>select myField1, myField2...myFieldn ;
> from (thisform.MultiselectGrid1.recordsource) ;
> where lSelected ;
> into array thisform.aSelected
This could be anywhere in any method rather than a commandbutton click code, just keep in mind that grid recordsource is 'gone' in its destroy event.
>Cetin

This is much more elegant and simple, than the code I proposed :) I may grab it also. Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform