Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual FoxPro 8.0 news - April 21, 2003
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00779917
Message ID:
00780486
Vues:
12
>>Customer.Name
>>
>>can not be typed at compile time. In fact, this could change after compilation. So this would never work.
>
>Not the greatest point in that respect because DataSets and dynamic fields work exactly like that although the syntax is different and it would require a cast:
>
>string Name = (string) drCustomer["Name"];
>
>There's nothing that would preclude a compiler fixing up Company.String to translate into something like the above and performing the type fixup.

Not entirely true. Sure, you could compile this into something collection based, but to do so, you'd first have to type "Customer" to be a table, which is something we do not do in VFP...

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform