Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of gets in a screen
Message
De
16/11/1998 20:59:54
 
 
À
16/11/1998 20:53:17
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00158096
Message ID:
00158099
Vues:
19
Never mind I found the problem in MS KB. The help is wrong I need to check for TYPE("objvar(ln_cntr)") = "C" and this fixes the problem. I already check and it works.





>I want to know the number of gets that I have in a screen. I tryed to use the objvar(). The help said that if you go passed the number of gets in the screen it should return empty. I tried this but when I got passed the number it gave me an error message. "11-Invalid function argument value, type or count." My code is this:
>
>ln_cntr = 1
>lc_var = OBJVAR(ln_cntr)
>DO WHILE .NOT. EMPTY(lc_var)
> ln_cntr = ln_cntr + 1
> lc_var = OBJVAR(ln_cntr)
>ENDDO
>
>Is this a bug and if so is there a work around?
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform