Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Argah how do I make this tiny little function work
Message
De
20/06/2001 11:11:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Argah how do I make this tiny little function work
Divers
Thread ID:
00521503
Message ID:
00521503
Vues:
57
The idea of this little function is to display status messages as my routine progresses.

I keep it in my procedure library.

If it finds a field on the active form called qmess it is supposed to update it and show it.

It works fine if I step through the code, but when I don't step through the code nothing at all displays in the field qmess (not even the default wait message)

It is being called by a program called RASDIAL() which is in turn being called by an event on my form.

I can do things in a different way but this is very handy for me. (if I can make it work)
*[99
* OVERVIEW of QMESS
* uses wait window to print a quick message on the screen
* converts any tilde ~ characters it finds to chr(13)
* to help with formatting the output
* If there is a text field on the active form called qmess it will
* output to that field instead
*]99

	Func qmess
	Param lcMessage
	lcMessage=STRTRAN(lcMessage,'~ ','~')
	lcMessage=STRTRAN(lcMessage,'~',CHR(13))
	If type('_screen.activeform.qmess')='O'
		_Screen.activeform.qmess.value=lcMessage
		_Screen.activeform.qmess.refresh
	Else
		Wait WINDOW lcMessage NOWAIT
	Endif
	Return .T.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform