Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 SaveAsClass - Header, Column,Page
Message
From
03/10/1998 13:11:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/10/1998 13:05:47
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00143459
Message ID:
00143616
Views:
51
>COOOLL it works!!!
>here is the function I came up with:
>
>
>FUNCTION CopyProp
>LPARA o1, o2
>
>IF TYPE('o1.Name') <> "C" OR TYPE('o2.Name') <> "C"
>	RETURN .F.
>ENDIF
>
>AMEMBERS(aProps, o1)
>
>FOR i = 1 TO ALEN(aProps)
>	IF !ALLTRIM(UPPER(aProps(i)))$"CLASS:PARENTCLASS:BASECLASS:NAME"
>		uVal = GETPEM(o1,aProps(i))
>		IF PEMSTATUS(o2,aProps(i),5) AND;
>			!PEMSTATUS(o2,aProps(i),1) AND;
>			PEMSTATUS(o2,aProps(i),3) = TYPE('uVal') AND;
>			!PEMSTATUS(o2,aProps(i),2)
>			o2.&aProps(i) = uVal
>		ENDIF
>	ENDIF
>ENDFOR
>
>
>thanks for our help, Cetin and Jim. This is going to open a couple of doors in my framework.
Good. Got a copy of code. Beware there is at least one situation that this will fail -> getpem(object, "value") and unfortunately controlsource is a general field.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform