Home > Archive > Getting Started with dBASE > August 2005 > MESSAGE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MESSAGE
RACHHPAL

2005-08-01, 8:23 pm

I used in dbase IV command @ 6,10 say "processing do not touch key"

how i can use in dbase plus.
Ken Mayer [dBVIPS]

2005-08-01, 8:23 pm

RACHHPAL wrote:
> I used in dbase IV command @ 6,10 say "processing do not touch key"
>
> how i can use in dbase plus.


You can't do it that way. Instead you need to create a small form with
the text on it that opens, and then you close it when your processing is
done.

This is all discussed in Chapter 17 or 18 of the User's Guide (go to the
online help, there's a discussion there on upgrading an application from
earlier versions).

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
john marshall

2005-08-02, 1:23 pm


Take a look at the MSGBOX(). 16-23

try the following !


msgbox("Processing: Do not touch any key","WARNING",0)



JM


RACHHPAL Wrote:

> I used in dbase IV command @ 6,10 say "processing do not touch key"
>
> how i can use in dbase plus.


Ken Mayer [dBVIPS]

2005-08-02, 1:23 pm

john marshall wrote:
> Take a look at the MSGBOX(). 16-23
>
> try the following !
>
>
> msgbox("Processing: Do not touch any key","WARNING",0)


Bad idea -- a msgbox halts processing, and any code that you want to
happen in the background will not execute.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Marc Hamelin

2005-08-02, 8:23 pm

> Bad idea -- a msgbox halts processing, and any code that you want to
> happen in the background will not execute.


I agree with Ken. The best way to do this is with a small form. I usually
use this little form to show the progress of an operation:

*************
fprocess = new ProgressForm("Processing - Do not touch key...", <your
minimum>, <your maximum> )
fprocess.open()

do while <your condition>
...
<your processing code>
...
fprocess.progress1.value += 1
_app.executeMessages()
enddo

fprocess.close()

class ProgressForm(text, rangeMin, rangeMax) of FORM
this.mdi = false
this.height = 3
this.width = 54.5
this.autoCenter = true
this.sysMenu = false
this.smallTitle = false
this.sizeable = false
this.moveable = false
this.showTaskBarButton = false
this.text = iif(empty(text) == true, "Operation in progress...", text)
this.progress1 = new progress(this)
this.progress1.top = 1
this.progress1.height = 1
this.progress1.left = 2
this.progress1.width = 50.5
this.progress1.rangeMin = iif(empty(rangeMin) == true, 0, rangeMin)
this.progress1.rangeMax = iif(empty(rangeMax) == true, 100, rangeMax)
this.progress1.value = 0

endclass
*************

Of course, you could always modify it to suit your own needs, such as
removing the progress bar if you don't need it or adding more text or
anything else along that like.

Hope this helps.

Marc Hamelin


Marilyn Price

2005-08-03, 7:23 am

In article <8pdnPWulFHA.1528@news-server>, rachhpalg@yahoo.com says...
> I used in dbase IV command @ 6,10 say "processing do not touch key"
>
> how i can use in dbase plus.


For another idea, I place a textlabel on the form that starts the
processing. It's invisible most of the time. However, when I want to
show that something is happening and it's not locked up, I make the
textlabel visible and change the wording (text) occasionally, making it
invisible again when finished. Or, to really make it obvious that the
process is complete, I put a msgbox at the _end_ of the process that
simply says "Done!"

--
Marilyn Price
M. P. Data
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com