Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INDEX ON (displaying progress)
Message
From
05/07/2010 14:09:39
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01471425
Message ID:
01471431
Views:
73
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi Gang!
>>>
>>>In one of our apps, there is some code to do an
>>>
>>>INDEX ON
>>>
>>>to recreate the tags in the free table.
>>>
>>>
>>>The output is displayed on the form, but looks very uncontrolled... writing over text and objects.
>>>
>>>
>>>I have added an editbox to show output before we reach this point in the program.
>>>
>>>Any way to redirect the output of INDEX ON to go into the editbox, instead of the form itself?
>>>
>>>Thanks!
>>
>>Did you try set talk on and set talk window commands? You need to define window to output result of SET TALK
>
>That seems to work fine..... I was hoping to get the output to the editbox object, but no go.
>
>Thanks!

Look into the memento design pattern and specifically the codebook objects. You can create an object that during init remembers the set talk setting, the current output window, the set notify setting into internal properties and then does SET TALK ON etc. Then index. Then release the object and code in its destroy method will reset those settings.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform