Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoEvents() was eliminated?
Message
From
07/11/2002 13:41:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00719905
Message ID:
00719958
Views:
30
This message has been marked as the solution to the initial question of the thread.
>I tried to rebuild a project in VFP8 beta and I got an error on DOEVENTS() command (not to mention errors on InputBox function from Rick Borup - I guess, it's not compatible with native InputBox).
>
>It's not a function - my bad. Was not caught by VFP6.
>
>Thanks in advance.

Hi Nadya,

As I'm sure you know, my InputBox function was written for VFP6, before there was a native InputBox function in VFP. To make it work with VFP7 or later you simply need to rename it so it doesn't conflict with the native one. In my INPUTBOX.PRG, replace
FUNCTION InputBox
with
FUNCTION rbInputBox
I suggest also renaming INPUTBOX.PRG to RBINPUTBOX.PRG just to avoid confusion. In any case, you can then call rbInputBox when you want to use mine instead of the native one.

The full Function syntax under VFP7 would be
FUNCTION rbInputBox( tcPrompt as String, tcTitle as String, txDefaultValue as Variant, ;
                     tnLeft as Integer, tnTop as Integer, tcFormat as String, ;
                     tcInputMask as String) as Variant
HTH,

-Rick
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform