Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
As character, as string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018232
Message ID:
01018272
Views:
11
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform