×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

List of Objects / Members of myPJX file

List of Objects / Members of myPJX file

List of Objects / Members of myPJX file

(OP)
Hi,

Do we have a procedure which will list all the files in myProject, preferably grouped by:
1. DataBases
Free Tables
Queries

2 Documents
Forms
Report
Labels
a.s.o.

like Tabpages in the PJX

Stay healthy,
Koen

RE: List of Objects / Members of myPJX file

Hi Koen,

You could open the pjx file as a table (use mypjx.pjx) and create a procedure with the information in these records.
It’s a bit of work, but probably doable.

I don’t have a ready-to-go procedure unfortunately.

Regards, Gerrit

RE: List of Objects / Members of myPJX file

(OP)
Gerrit,
Yes that's the way I would do it also, however as you say, it is a bit of work. The members are listed in the memofield but certainly not 'ready to use to make a list'
Stay healthy,
Koen

RE: List of Objects / Members of myPJX file

Koen,

You might try exploring some of the options in the Documenting wizard (Tools -> Wizards -> Documenting).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: List of Objects / Members of myPJX file

(OP)
Mike
It seems to me I am not so handy with that wizard: I get 2 empty tables plus a cdx file.
stay healthy,
Koen

RE: List of Objects / Members of myPJX file

There is _VFP.ActiveProject.Files and each File object has a FileType for categorization.
Using the PJX as a table has one advantage: You don't need to open the project in VFP to query it.

Chriss

RE: List of Objects / Members of myPJX file

Seems to me you could do a query of the PJX that would sort the files as you want them.

Tamar

RE: List of Objects / Members of myPJX file

Following Chris's suggestions, you could do something like this:

CODE -->

MODIFY PROJECT "MyProject" NOWAIT 
loProj = _VFP.ActiveProject
FOR EACH loFile IN loProj.Files
  ? loFile.Name, loFile.Type
ENDFOR 


Obviously, this can be refined to produce something more useful, but it should provide a start.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: List of Objects / Members of myPJX file

(OP)
Mike,
Again one of splendid ideas!
Will construct and publish here for those interested.
Stay healthy,
Koen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close