Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command window
Message
De
04/02/2002 19:50:50
 
 
À
04/02/2002 19:47:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00614537
Message ID:
00615177
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform