Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I change object class lib by changing classloc in sc
Message
From
16/02/2001 12:13:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
16/02/2001 11:20:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00476663
Message ID:
00476695
Views:
32
>So I need help in two areas: 1) copying the vcx 2) is it safe to change the scx. Do I have to worry about spaces, carriage returns etc. if I do itmanually ? would it be safe to, for example, replace all classloc with 'surveycls2' for classloc='surveycls' ?

I've done it many times. You may need to include the .vcx extension, make sure no trailing spaces are there, and that'd be it. Safest way is to
replace classlib with strtran(classlib,'oldlibname','newlibname')
so you keep the extension, paths etc. Remember to recompile the form ("compile form yourform" in 6.0 and "compile class yourform.scx" in 5). Backup first, i.e. work on a copy of your form, with the copy of the classlib.

As for copying the vcx, I'm usually not taking the whole vcx, but rather
add class [classname] of oldlib to newlib
.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform