Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining whether a control exists.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00453834
Message ID:
00454461
Views:
28
Nadya,

Try this one and see which one is fester.
LOCAL i, lnSec
lnSec=seconds()

for i=1 to 100000
   if type('oJC.Name')='C'
   endif
next

?seconds()-lnSec
lnSec=seconds()

for i=1 to 100000
  if vartype(oJC,Name)='C'
  endif
next
?seconds()-lnSec
BTW, Make sure that oJC does not exist. So how much faster is VarType() now?
Speed isn't everything you see .,,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform