Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
As character, as string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01018232
Message ID:
01018272
Vues:
12
Hi Chad, and do you know if it does any difference between Character and String when using COM?

Thanks,
Javier.

>Javier,
>
>That easy!! One says character and one says string. ;)
>
>Seriously though, there's really no difference as far as VFP is concerned. The AS does not change the type of the variable in any way. In either case the variable is still defined as a local logical variable. It's really variant (as everything in VFP is), but the false values is what it is initialized as. That syntax is there to help in reading the code and understanding intent by other developers (or for yourself a few days after you've written it). There is also some place that actually does have meaning and I think (someone can correct me here) it has to do with COM. When you declare a class as OLE PUBLIC, the "types" get built into the type library for the COM object.
>
>Anyway...
>HTH,
>Chad
>
>>Hi all,
>>
>>can some one explain me please what is the difference between:
>>
>>
>>local lcMyVariable as character
>>
>>
>>and
>>
>>
>>local lcMyVariable as string
>>
>>
>>Thanks,
>>Javier.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform