Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public memvar as type OF CLASS
Message
 
 
À
14/02/2002 09:51:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00619740
Message ID:
00620032
Vues:
19
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform