Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INDEX ON (displaying progress)
Message
De
05/07/2010 14:09:39
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01471425
Message ID:
01471431
Vues:
74
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform