Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter name object
Message
De
11/09/2009 17:39:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
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:
01423778
Vues:
42
>>>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().

Maybe you would instead use scatter to array. Then you could directly use for each w/o amembers.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform