Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for an object
Message
 
À
02/08/2001 20:03:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00539160
Message ID:
00539176
Vues:
11
Randy,
ThisForm.AddObject("myclass")

IF TYPE("THISFORM.MyClass") = "O"
  MESSAGEBOX('Abject Created.')
ENDIF

IF VARTYPE(THISFORM.MyClass) = "O"
  MESSAGEBOX('Abject Created.')
ENDIF
TYPE("myClass") is returning "U" because it is looking for a memory variable named MyClass.

Will

>Hi. VFP6. I am trying to test for the presence of an object that I created with ThisForm.AddObject("myclass")
> TYPE("myclass") always returns "U". Any idea why?
Heavy Metal Pedal - click with care
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform