Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key para executar metodo
Message
From
16/10/2004 22:08:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00951835
Message ID:
00952039
Views:
10
Eu pensei que não iria funcionar, porem, si funciona. Isto é, para mim, sorpreendente.

Entao, parece que o VFP gera um nome de variável de tipo objeto automáticamente.

>Oi Hilmar,
>
>O nome do formulário e do arquivo podem ser diferentes. Usando o nome do arquivo, você tem uma referência para a instância do objeto do seu Form. Só haveria problema se houvesse mais do que uma instância do form executanto no mesmo momento, o que faria com que o formulário chamado mais recentemente fosse referenciado. O código "sujo" abaixo mostra isso:
>
>
>SET SAFETY OFF
>
>CREATE FORM Teste NOWAIT SAVE
>KEYBOARD '{ENTER}'
>
>DO FORM Teste
>
>Teste.Caption = "Olá, meu nome é " + Teste.Name
>
>
>Um abraço!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform