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:40:07
 
 
To
17/09/2015 11:34:13
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:
01624748
Views:
83
>>I would rather pass back a keyed collection of record objects, key being the table/cursor's primary key
>
>Thierry: would this then be a custom object passed back that contains an array (as a property of the object) and each of the rows in the array is a record object (created with SCATTER NAME to an object)?
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
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform