Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save control item values for load later for its
Message
From
06/12/2004 09:13:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00967140
Message ID:
00967154
Views:
8
>Hi ,
>
>would you like to give simple sample for loop and insert actions ?
>
>for example i've below control
>
>thisform.txtdate1
>thisform.txtdate2
>thisform.checkbox1
>thisform.combobox1
>thisform.optiongroup.option1
>thisform.optiongroup.option2
>
>TIA

You'd need a recursive call to a method that collects them. Roughly:
procedure fillcollection
Lparameters oContainerObject
Local ix, nMembers, lnExpand, oObjectRef, aContainerObjects[1]
nMembers = amembers(aContainerObjects, oContainerObject,2)
With this
  For ix = 1 to nMembers   && Start collecting
  * Get members   
    .FillCollection(oObjectRef)  && Get members of this container
  Endfor
Endwith
PS: Full code is part of FoxyClasses. Sample is UdfObjCollector class sample.
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