Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL no VFP6
Message
 
À
24/06/2002 10:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00671635
Message ID:
00671971
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
Oi Roberto,

Só complementando a resposta do Frederico, você poderia incluir no seu projeto um arquivo .PRG com funções/procedimentos não orientados a objeto e definir uma referência através de SET PROCEDURE em algum ponto da sua classe (provavelmente no método Init). Ex.:
*-- Arquivo de funções (Func.PRG) incluído no projeto
FUNCTION Soma(a as Number, b as Number) as Number
  RETURN a+b
ENDFUNC

*-- Arquivo da classe (Teste.prg) também incluído no projeto
DEFINE CLASS Teste as Custom olepublic

  PROCEDURE Init
    SET PROCEDURE TO Func
  ENDPROC
  
  FUNCTION Soma(a as Number, b as Number) as Number
    RETURN Soma(a,b)
  ENDFUNC

ENDDEFINE
Um abraço!
-----
Fabio Vazquez
http://www.fabiovazquez.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform