Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter name object
Message
De
11/09/2009 23:59:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01423573
Message ID:
01423803
Vues:
69
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>Is there any trick to access fields from
>>>
>>>scatter name loRecord
>>>
>>>as a collection?
>>>
>>>Thanks in advance.
>>
>>What type of a trick you need? It is as simple as loRecord.FieldName. If you think fieldName as a collection key then you simply use the key itself as property:) For looping you could simply use amembers().
>>Cetin
>
>Yes, I wanted something like
>
>for each loField in loRecord.Fields
>
>I guess the only way is to use amembers().

Alternately
for i=1 to fcount()
   luValue=getpem(loRecord, field(i))
* now do something with the value - add it to a collection if you want.
endfor

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform