Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add methods to a class based on field values
Message
From
06/01/2005 12:36:28
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974698
Message ID:
00974731
Views:
35
Thanks Sergey,
That did the trick!
Tracy

>Tracy,
>
>You've to be in Class Designer. Try
MODIFY CLASS SysInfo OF ATISysInfo NOWAIT
>ASELOBJ(laObj,1)
>oSysInfo = laObj[1]
>...
>
>>
>>"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
>>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform