Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command window
Message
De
04/02/2002 19:53:11
 
 
À
04/02/2002 19:47:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00614537
Message ID:
00615178
Vues:
24
>>>Can somebody tell me why these two commands dont do anything if I run them both at the same time:
>>>o = NEWOBJECT('frmschentry', 'opmonitor')
>>>o.Visible = .t.
>>>
>>>but if I run them one by one then a form is visible.
>>>
>>>Thanks, Mark
>>
>>Hi Mark,
>>
>>When you highlite multiple lines in the command window, Right click and select 'Execute Selection' foxpro does not execute highlited commands in the command window one by one. It copies selected lines into the temporary .PRG, compiles and executes it. You would get the same result if you copy selected lines in the program and run it.
>>Now back to your example. As soon as temorary .PRG is finished variable 'o' goes out of scope and form gets released. If you declare variable 'O' in the command window by running your code line by line or any other way, than variable 'o' wouldn't be released at the end of temporary .PRG and form will still be visible.

Sorry, sent no reply.

Thanks for help.

Mark
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform