Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command window
Message
 
 
À
04/02/2002 19:50:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00614537
Message ID:
00615199
Vues:
19
Hi Mark,

I was bitten by the same problem, as you. I got a habit to type cd ..\myProject modify myProject in command window, highlight them and execute. Then I was very surprised, what when I tried to do Search by Ctrl+F, my form immediatelly closed. I even re-installed VFP. Finally Steve explained the same thing to me, which he just explained to you... So, I now execute these commands line by line...

>>Mark,
>>
>>It will work if the object ('o' in this case) is already a public variable. Test it by doing the following steps in command window:
>>
>>
>>o = NEWOBJECT('frmschentry', 'opmonitor')
>>
>>
>>At this point, 'o' is a public variable. Now, type in the second line, highlight both lines, and hit enter.
>>
>>
>>o = NEWOBJECT('frmschentry', 'opmonitor')
>>o.Visible = .t.
>>
>>
>>It should have worked. Now, get rid of the public variable:
>>
>>
>>release o
>>
>>
>>Highlight the 2 program lines, and hit enter, this time it should not work.
>>
>>HTH,
>>
>>steve
>>
>>>>Mark,
>>>>
>>>>Because when you run multilines from the Command window, VFP takes the lines and makes a temp PRG file and then runs that.
>>>
>>>Then why sometimes it works from Command line?
>>>
>>>Thanks, Mark
>
>Yes, this is absolutely right. thanks
>
>Mark
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform