Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox with timer in VFP6.0
Message
 
 
À
21/01/2002 17:48:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00602540
Message ID:
00608384
Vues:
24
Hi Rick,

Thanks a lot for your response. I didn't look through the code closely, but I believe you didn't declare lnHand in the main procedure as local, only in timer event. I also believe there was another variable like l_cErrorMessages, which was not declared.

Anyway, I asked my colleague to run this function standalone on Windows 98, and it worked just fine. So, I assume, it was some weird combination of properties (user environment), which caused this error message on user's machines, which happen to be Windows 98, what's why my original suspect was, what it's OS related. I now think, we need to dig deeper in order to find the cause of it. We both could not replicate this problem on our development machines (Windows 95 (!)) and on Windows NT box.

Currently she commented out the call to this program, so we'll return to this problem lately. I will go ahead and implement your idea about IsWindow anyway.

Thanks again.

>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform