Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get all procedure names in a project
Message
From
07/01/2009 13:21:23
 
 
To
07/01/2009 08:15:19
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01371489
Message ID:
01371818
Views:
14
>>>Yeah, I got that one. And I do see the Files object, but the only property it has is the Count. Yet, your code works. What is the logic of knowing to reference Files.Item[] ? I don't see a collection like that.
>>
>>You don't see it in the Debugger because it's a COM object. For COM objects, the Debugger only shows properties that you've already accessed.
>>
>>But if you look in Help, you'll find information about this object model.
>>
>>Tamar
>
>So, I could somehow loop through and touch all the objects in the COM object and then they would be available in the Debugger? How could I do that without knowing what they are? Will a FOR EACH work here? I did read the help and did not see anything specifically showing that there was any properties beyond Files and then File.Count. If you can point me to that, I would appreciate it.

This help topic: Files Collection Properties and Methods

Yes, you can process the files in a FOR EACH loop:
FOR EACH oFile IN _VFP.ActiveProject.Files
  * Do something with oFile
ENDFOR
Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform