Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get this rigged import status message to work?
Message
From
20/10/1999 07:46:17
 
 
To
19/10/1999 08:45:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00278099
Message ID:
00278690
Views:
12
>I have this import that takes forever and I don't want the user to think their computer's locked up. So I'm trying to force some type of changing message to be displayed. I have this one line of code:
>
>
append from c:\textfile for (thisform.ForceStatus)


Try: append from c:\textfile for (thisform.ForceStatus<b>()</b>)
instead.

>
>that should do the import.
>
>The code in the ForceStatus method doesn't do a whole lot. Basically it's just a case statement, such as this:
>
>
select case
>    case mod(recno(), 20) = 0
>         msg = "Importing...."
>    case mod(recno(), 30) = 0
>         msg = "Importing........"
>    (and so forth through mod(recno(), 90))
>endcase
>wait window msg nowait
>return .t.
>
>But when I try to run the form I get an error back up at the "append from " line stating that ForceStatus is a method or event or object (or something very similar to that message).
>
>So my question is, where should I put this subroutine so that it may be called by the append statement so that I can have some type of changing message. Thanks!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform