Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Documenting a class?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00474282
Message ID:
00474610
Vues:
21
>You can get a little bit fancier than that. A handle to the object browser is available to you in the development environment. This code allows you to select a .TLB, .DLL, .VCX or anything else that the object browser can browse, sucks out some information, such as public methods and the attached comments, and makes a table. I'll leave it to you to write a wuick report form to print it out.
>
>Mike
>
>local lcFileName, lcAlias, lnI
>
>lcFileName=getfile("TLB,VBR,VCX,DLL")
>
>create table (lcFileName+".DBF") free (name C(25), descrip m)
>lcAlias=alias()
>
>&&_BROWSER="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VFP98\BROWSER.APP"
>DO (_BROWSER) with lcFileName &&call up the object browser
>
>for lnI=1 to alen(_oBrowser.amemberlist,1) &&gleen info from object browser
> insert into &lcAlias (name, descrip);
> VALUES (_oBrowser.amemberlist[lnI,1], strtran(_oBrowser.amemberlist[lnI,3],chr(13),chr(10)))
>endfor
>
>_oBrowser.Release() &&done with the object browser
>
>go top
>report form tlb_documenter preview
Thanks to everyone for ideas (even if I was not the originator :).
I've just remembered, that while ago (more than 1 year) I already created some reports for the same purpose. I'll look at them on Monday, if would not forget...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform