VB6 - How do i get the name of my project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennijr
    New Member
    • May 2007
    • 17

    VB6 - How do i get the name of my project

    I've been looking around on Google for a while now and haven't found anything on how to grab the name of a project thats running. The reason I've been looking is because i want my program to access itself as a source of information (so app.path & "\" & {project name}) and of course i could go the easy path and just put in the compiled project name but if i did that and someone renamed the project, it wouldn't work properly (not that it would be my problem then lol)
    now to answer the guidelines along the side...
    OS - creating in windows XP SP3
    language - vb6
    source - not really relevant, wouldn't help the question any...
    input - not relevant
    error codes - not relevant
    I have to go back and correct a whole bunch of things for this one lmao...

    thanks in advance
  • janders468
    Recognized Expert New Member
    • Mar 2008
    • 112

    #2
    I don't have vb 6 on my computer (so I can't check) but in vba there is a currentproject object. CurrentProject. Path returns the path and CurrentProject. Name will return the name. I believe it is the same in vb6 but could be wrong.

    Comment

    Working...