Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public memvar as type OF CLASS
Message
 
 
To
14/02/2002 09:51:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00619740
Message ID:
00620032
Views:
18
>Yes, I have noticed that you can create the variable as an OLE Server... Is what I just said correct? Anyway, in VB you create references (I think), then you are allowed to Dim varname AS SomeTypeOfCOMServer. But in FoxPro, how do you add the reference?

I've no idea what is VB reference. In VFP you use strong typing to tell Intellisence what object or type library to associated with a variable. For COM objects you use Progid like in following example
LOCAL oExcel AS "excel.application"
oExecl.
>
>And I read the statement :
>PUBLIC array MyArray[2] AS _form OF ffc\_base
>in the Fox help files...... and I was just wondering why they put that
>in..... it's kind of funny.


In this case it more like a comment that describes what is stored in MyArray. Strong typing is not enforced at design time or at run time.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform