I am trying to display an information form whilst other processing continues.
I cannot use WAIT as it won't accept a text variable (required) or
MESSAGEBOX as it always waits for user acknowledgement. I want to display a
window which has text coming from a variable but continue processing without
any intervention by user.
Any help would be appreciated.
Man-wai Chang ToDie (33.6k) - 26 Jul 2008 05:31 GMT
> I am trying to display an information form whilst other processing continues.
> I cannot use WAIT as it won't accept a text variable (required) or
How did you call WAIT?

Signature
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 8.04) Linux 2.6.26
^ ^ 12:28:01 up 3 days 2:07 3 users load average: 1.02 1.04 1.01
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/
Man-wai Chang ToDie (33.6k) - 26 Jul 2008 10:49 GMT
>> continues. I cannot use WAIT as it won't accept a text variable
>> (required) or
>
> How did you call WAIT?
xx = 0
do while xx<10
yy = str(xx)
wait window yy nowait
xx = xx+1
enddo

Signature
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 8.04) Linux 2.6.26
^ ^ 17:45:01 up 1:54 0 users load average: 1.00 1.04 1.00
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/
Stefan Wuebbe - 26 Jul 2008 05:55 GMT
>I am trying to display an information form whilst other processing continues.
> I cannot use WAIT as it won't accept a text variable (required) or
> MESSAGEBOX as it always waits for user acknowledgement. I want to display a
> window which has text coming from a variable but continue processing without
> any intervention by user.
> Any help would be appreciated.
You can Show() a form, then run your code, and then Release()
(or Hide) the form. (I did not understand your Wait Window remark.)
<example>
LOCAL loSplashScreen as Form, i
loSplashScreen = CREATEOBJECT('Form') && your class
loSplashScreen.AutoCenter = .T.
loSplashScreen.Show()
FOR i = 1 TO 10000
WAIT (TRANSFORM(i)) WINDOW NOWAIT NOCLEAR
ENDFOR
loSplashScreen.Release()
</example>
hth
-Stefan

Signature
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------
Dan Freeman - 28 Jul 2008 16:50 GMT
Just to clear up an obvious misunderstanding...
WAIT WINDOW will *absolutely* accept a text variable.
lcMessage = "Doing something. Please wait."
WAIT WINDOW lcMessage NOWAIT
Dan
> I am trying to display an information form whilst other processing
> continues. I cannot use WAIT as it won't accept a text variable
> (required) or MESSAGEBOX as it always waits for user acknowledgement.
> I want to display a window which has text coming from a variable but
> continue processing without any intervention by user.
> Any help would be appreciated.
swdev2 - 29 Jul 2008 09:27 GMT
Check out the progress bar samples on your computer or the installation CD.
You can use the same concept presented there to present changing text
variables to the user, in a form output.
HTH !
Mondo Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net
> I am trying to display an information form whilst other processing continues.
> I cannot use WAIT as it won't accept a text variable (required) or
> MESSAGEBOX as it always waits for user acknowledgement. I want to display a
> window which has text coming from a variable but continue processing without
> any intervention by user.
> Any help would be appreciated.