Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ideas for passing records back to calling form
Message
De
17/09/2015 11:40:07
 
 
À
17/09/2015 11:34:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01624724
Message ID:
01624748
Vues:
82
>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform