Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VARTYPE vs TYPE with Parent property
Message
De
27/07/2002 13:06:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00682266
Message ID:
00683265
Vues:
37
>Hi Bill,
>
>Foxpro keeps the variable type when you assign Null value to it.
myvar = Createobject("Line")
>? Type("myvar"), VarType(myvar)
>myvar = Null
>? Type("myvar"), VarType(myvar)
>
Hi Sergey,
Is there any reason I cannot assume that an object's Parent is an Object?
** Type('loObject.Name') = 'C'
DO WHILE TYPE('loObject.Parent')='O'
  loObject = loObject.PARENT
ENDDO
Should I change that to this?
DO WHILE TYPE('loObject.Parent.Name')='C'
  loObject = loObject.PARENT
ENDDO
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform