Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function to check variable type
Message
De
14/02/2001 17:48:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00476059
Message ID:
00476062
Vues:
23
>Is there a quick function to check if a variable is a field from a table or a memory variable ?
>
>
>Thanks in advance.
IF TYPE('table.field')<>"U"
  *
  * It's a table field
  *
ELSE
  IF TYPE('field')<>"U"
    *
    * it's a memvar
    *
  ELSE
    *
    * no such animal exists
    *
  ENDIF
ENDIF
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform