Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add methods to a class based on field values
Message
 
À
06/01/2005 12:08:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00974698
Message ID:
00974720
Vues:
41
Yes :o(((
I don't know what this means, where I must put this to write the method in some class (may be in builder?).
Unfortunately i try it AFTER i post the message.

>I get:
>
>"Feature is only available if the object is in design mode"
>
>when it hits the writemethod line when I run:
>
>oSysInfo = NEWOBJECT('SysInfo', 'ATISysInfo.vcx')
>SELE sysinfobld
>SCAN
>   IF !EMPTY(sysinfobld.csubitem) .and. LEN(ALLTRIM(sysinfobld.csubitem)) > 0
>	mvalue = ALLTRIM(STRTRAN(sysinfobld.csubitem,CHR(32),''))
>	IF !PEMSTATUS(oSysInfo,mvalue,5)
>		ADDPROPERTY(oSysInfo,mvalue,'')
>	ENDIF
>	IF PEMSTATUS(oSysInfo,mvalue,5)
>		oSysInfo.WRITEMETHOD(mvalue,sysinfobld.mmethod)
>	ENDIF
>   ENDIF
>ENDSCAN
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform