Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract Form's Caption and Form Name from VFP Pro
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00883518
Message ID:
00883663
Views:
22
>After 2 hours of looping through the MSDN, I'm still stuck trying to get a better understanding of the ActiveProject Collection.
>
>I'm still in need of a way to extract to the Form collection.

You'll not be able to get the form's caption, but you can retrieve things like the file name, class library, etc. like this
FOR lni = 1 TO _VFP.ActiveProject.Files.Count 
  IF _VFP.ActiveProject.Files(lni).Type = "K" THEN
    ? _VFP.ActiveProject.Files(lni).FileClassLibrary 
  ENDIF
NEXT
To get things like the caption you could do some thing like issue a command to run the form like this:
DO FORM myform NAME oForm NOSHOW
lcaption = oForm.Caption
oForm.Release
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform