Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ideas for passing records back to calling form
Message
From
17/09/2015 11:57:30
 
 
To
17/09/2015 11:40:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01624724
Message ID:
01624750
Views:
81
Nice. I had not used a collection object before. I would not have a primary key at the point of passing back the data (I would probably assign that key when I inserted it into the view in the calling form). Reading the help file, it seems as though you don't have to assign a key - any reason to do assign the key at the time of adding the object to the collection (ease of use later or good design?).

Albert

>
>procedure form.unload
>
>o = create('collection')
>local oRec as Empty
>select ...
>scan
>  scatter name oRec  memo
>  o.add(m.oRec, transform(primaryKey))
>endscan
>
>return m.o
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform