Versions des environnements
Network:
Windows 2008 Server
You could rape a memo field and add your property definition there in an ini, xml,JSON or similaraly parseble format.
You could save a fully formed/set object as vcx with .SaveClass()
But in vfp you can use more than one table, why not put the info in a second table, one record for each partner ?
You could even keep your object in code and feed the data via gather name after seeking the correct record...
YMMV
thomas
>Hi, I wrote a class that creates an object and stores all demographic info into its properties.
>
>Example:
>accountInfo=createobject("demographic")
>then on reports I refresh the object for every record and I put on the report:
>
>accountInfo.nameE
>accountInfo.nameY
>accountInfo.dob
>accountInfo.addressMultiLine
>accountInfo.parentsName
>Etc.
>
>I find it very clean as opposed to using variables.
>The real reason was cause some times I need in the same record, info for 2 different accounts. that's in a Partner report. We want to see all Demographic info for Partner 1 and all Demographic info for his Partner.
>So I have in the running cursor 2 fields for partner1 ID and partner2 ID
>and I instanciate 2 objects
> accountInfo1=createobject("demographic")
> accountInfo2=createobject("demographic")
>and I use both objects simultaneously
>
>Now Question:
>
>I would like to store the Class Objects into gen fields before the report runs instead of calling it from the report.
>
>Is there a way? What type of classes can be put in a gen field? OLE? whats that? how do i make such a class.
>
>Thanks
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement