General information
Category:
Coding, syntax & commands
>>>How can I replace a base class with a new one. Say, I have used myCombo and now I want to change it globally to myNewCombo without having to recreate my forms from scratch?
>>>
>>>Any ideas?
>>>
>>>Peter
>>
>>I just posted some code to do it on another thread yesterday or the day before. I don't remember the name of the thread, but if you look at the last couple days, you should find it.
>>
>>-Michelle
>
>
>ADIR(laForms,*.scx)
>FOR i = 1 TO ALEN(laForms)
>USE (laTables[i]) IN 0
>REPLACE ALL class WITH newtextbox FOR class = oldtextbox
>REPLACE ALL classloc WITH newloc FOR classloc = oldloc
>USE IN (laTables[i])
>ENDFOR
>
>if this is it then I have done that and it is not enough. The is method code in at least one memo field and I strtran'd in there too but still not enough. There must be more to it than meets the eye.
>Thanks anyway
>
>Peter
Yeah, that's it. I'm not sure what you mean about code in the memo field? What memo field? I thought you just wanted to change the classes?
-Michelle
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only