Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Setting Form Template Class
Mensaje
De
20/12/2002 14:52:42
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Foro:
Visual FoxPro
Category:
Programación, sintáxis y comandos
Miscellaneous
ID de la conversación:
00734894
ID del mensaje:
00734989
Views:
15
Your welcome.

>>Ronald
>>
>>I store all my template classes in a dbf and use this program when switching to a new project.
>>
>>
>>
>>CLEAR ALL
>>USE fldmap
>>GO top
>>LOCAL loWSH, cClassLoc, cClassValue, cFldType, cKey
>>loWSH = CREATEOBJECT("wscript.shell")
>>#define REGPATH "HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\7.0\Options\IntelliDrop\FieldTypes\"
>>IF VARTYPE(loWSH) = "O"
>>	IF NOT EMPTY(classloc) AND NOT EMPTY(classname)
>>		SCAN
>>			cKey = REGPATH+ALLTRIM(fldtype)+"\ClassLocation"
>>			loWSH.RegWrite(cKey,ALLTRIM(classloc))
>>			cKey = REGPATH+ALLTRIM(fldtype)+"\ClassName"
>>			loWSH.RegWrite(cKey,ALLTRIM(classname))
>>		ENDSCAN
>>	ENDIF
>>ENDIF
>>USE IN fldmap
>>
>>
>>
>>>working on 19 projects at once and jumping from one to the next, I have to continually set the Form Template Class in the Options set dialog based on what project I am in.
>>>
>>>Would like to find a way that this could be done programmically. I would appreciate if anyone can steer me in the right direction!
>>>
>>>Thanks in advance
>
>Thanks! What I was looking for and thank you for code examples
Previous
Responder
Mapa
Ver

Click here to load this message in the networking platform