Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoEvents() was eliminated?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00719905
Message ID:
00719959
Views:
18
>>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

Thanks, Rick. I renamed it to InputBox1. Hopefully, it's not a problem for you, since I already made modifications...

Thanks again for this function.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform