Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox with timer in VFP6.0
Message
From
21/01/2002 17:48:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00602540
Message ID:
00608075
Views:
33
While I did find that I'd missed declaring l_nReturnVal as local, I believe the more likely scenario is that you have another procedure "iswindow". Try changing the three references to something like f_iswindow.

Rick

>Hi Rick,
>
>We implemented this program and it worked great on Windows 95 or Windows NT. However, on Windows 98 we have this error message, trapped by our Error Handler:
>
>Error #: 9
>Program: MESSAGEBOXX
>Message: Data type mismatch.
>Line #:  210
>Source:  lnHand = iswindow(l_cTitleBarText)
>Active Form: jobs
>Data Session: 5
>
>l_cTitleBarText = 'View Stats' and this is the title of messagebox window (e.g. passed title). I haven't examined the logic of your program, but I noticed, that you don't declare each local variable as local. Could it be a problem?
>
>Thanks in advance.
>
>>I created a similar procedure [MESSAGEBOXX()] for our user group as an exercise, and I understand a number of people are using it successfully. Go to http://mmfudg.lansing.com/last0106.htm and get "TimedMB.zip - Rick's Timed MessageBox Code (7KB)" - it includes versions for both 5.0 and 6.0.
>>
>>Rick
>>
>>>>>Hi everybody,
>>>>>
>>>>>We're still using VFP6.0 :( Is where a class, which simulates MessageBox functionality but with a timer? I've checked Donwloads section, but didn't find the appropriate class, if it exists.
>>>>
>>>>What about file #9897?
>>>
>>>Missed it in my search for some reason. Thanks, seems like this is the ticket.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform