Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converter SET PROCEDURE para uma classe
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Converter SET PROCEDURE para uma classe
Miscellaneous
Thread ID:
00653356
Message ID:
00653356
Views:
50
Alow! Alow! Alow!

Gostaria de saber a vantagem entre ter um arquivo de PROCEDIMENTOS (SET PROC TO ...) ou tudo em uma classe, instanciada como um objeto do _Screen.

Por exemplo:
* Programa Principal
SET PROC TO Funcoes.PRG
* Funcoes.PRG
Function ABC
Return xxx
etc...
ou
Funcoes = CreateObject("MinhasFuncoes")
Define Class MinhasFuncoes
   Function ABC
   Return xxx
EndDefine
[]'s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Next
Reply
Map
View

Click here to load this message in the networking platform