Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of gets in a screen
Message
From
16/11/1998 20:59:54
 
 
To
16/11/1998 20:53:17
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00158096
Message ID:
00158099
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform