Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Plz Suggest a subclass tool
Message
From
10/10/2006 22:03:52
Max Chen
Yx Software
Shunde, China
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01160740
Message ID:
01161082
Views:
13
>Hi Max
>
>>Plz suggest me a subclass tool
>>
>>The tool should handle all files in a master-folder.
>>
>>Copy all class lib and forms to destination folder, then
>>
>>rename them with a prefix.
>
>Try and look for DupClass here in the downloads or Google for it.


I think it's not really complicated..... and i had try....

Thank for your kindness. :)


code of cmdGo.click
LOCAL nVCX,aFile[1],aCls[1],cTmp,nClass

SET TEXTMERGE ON NOSHOW 

IF ADIR(aFile,thisform.txtSource.Value + '*.VCX')=0
	MESSAGEBOX('no class lib found',48)
	RETURN
ENDIF   

FOR nVCX=1 TO ALEN(aFile,1)
	FOR nClass=1 TO AVCXCLASSES(aCls ,aFile[nVCX,1])
		CLEAR TYPEAHEAD 
		
		TEXT TO cTmp PRETEXT 15 
			CREATE CLASS <<aCls[nClass,1]>> OF <<thisform.txtDest.Value+JUSTSTEM(aFile[nVCX,1])>>
				 as <<aCls[nClass,1]>> FROM <<aFile[nVCX,1]>> NOWAIT 
		ENDTEXT 
		&cTmp
		
		RELEASE WINDOW "Properties"
		RELEASE WINDOW "FORM CONTROLS"
		KEYBOARD '{ctrl+w}' 
		doevents
	NEXT 	
NEXT 
doevents
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform