Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do find all programs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00469255
Message ID:
00469444
Vues:
11
>The VBScript.RegExp object could be set up to process this as a regular expression to get around the abbreviation, quote-use type, and case sensitivity. The real problem comes when you realize that there may be multiple subclasses of MyObj derived from MyObj; if "YourObj", "HisObj" and "TheirObj" are all based on MyObj, the you need to look for all these, and then these can have subclasses...it gets complex. Not to mention that it can be indirected - IOW, you load a memvar with the name of the class to instance, like:
>
>
cMyClassNameToInstance = 'MyObj'
>cMyClassLib = "EdSillyClassLib.VCX'
>oMyObj = NEWOBJECT(cMyClassNameToInstance,cMyClassLib)
>
>To do this right, you really need a tool that can roundtrip a VFP app into a Model, along the lines of Ratrional Rose (perhaps Visual Modeler can do this, I don't know). There's some discussion of these topics in Markus Egger's book on Advanced OOP from Hentzenwerke

What are you doing, giving away the entire VFUG article?< g,d&r > Or is this an addition?:-)

Seriously, this problem reminds me of the conversation Gonzo and I had last night. He's trying to talk me into a modified version of Obj2Bmp that would automatically launch and capture forms in a project. Three problems, one is the possible presence of parameters in the form. The second is if you address sub-classed forms, determining the which are the child classes to capture and which are the parents (which you don't). Anyway you slice (and dice it) there's a good deal of parsing to be done, and I think that the RegExp object might make some of this a bit simpler.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform