Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a service pack in the pipe
Message
De
22/02/2004 05:42:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00879242
Message ID:
00879710
Vues:
13
The only certainty is that the confusion is maximum.
CLEAR

? TYPE('aaa(1)')       && Print "U", then do not eval functions
? VARTYPE(aaa(1))  && Print "N", eval functions

x = CREATEOBJECT('textbox')
? TYPE('x.Click()')      && Print "U", then do not eval methods
? VARTYPE(x.Click()) && Print "L", eval methods

? TYPE('bbb(1)')  && Print "U" can eval undef array
? VARTYPE(bbb(1)) && ERROR cannot eval undef array, it use (bbb(1),.T.) internal routine

* VARTYPE(exp,.T.) is usable only with if exp is evaluable
? VARTYPE(cx,.t.)      && ERROR 
? VARTYPE(aab(1),.t.)   && ERROR 

* A incomplete explain table:
***********************************************************************************************************
************    Scalar * Array * Fields * Procedure * Method * Internal Object * External Object * NULL   *
***********************************************************************************************************
* TYPE        *  OK    *  OK   *  OK    *   BUG     *  BUG   *    OK           *    ?? OK        *  type  *
***********************************************************************************************************
* VARTYPE     *  OK    *  BUG  *  !!!!  *   OK      *   OK   *    OK           *  ERR/CRASH      *   X    *
***********************************************************************************************************
* VARTYPE(,T) *  BUG   *  BUG  *  BUG   *   BUG     *   BUG  *    BUG          *  ERR/CRASH      *   X    *
***********************************************************************************************************

PROCEDURE aaa(z)
   RETURN m.Z
ENDPROC
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform