Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Your class
Message
From
08/08/2000 04:27:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/08/2000 10:01:04
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00401794
Message ID:
00402126
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform