How to get the source file name

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

How to get the source file name

Post by byron.hopp »

I attempted to use ProcFile() 0,1,2,3,4 but never get the actual filename of my source file. Is there a way to do this?
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to get the source file name

Post by Antonio Linares »

Byron,

Please run this and tell you what you get:

Code: Select all

function Main()

   local n
   
   for n = 1 to 10
      ? n, ProcLine( n ), ProcFile( n ), ProcName( n )
   next
   
return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: How to get the source file name

Post by byron.hopp »

Thank you, my friend...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: How to get the source file name

Post by byron.hopp »

Antonio,

I tried this on IIS.

?"*****"
for n=1 to 10
?Str(n) + ", " + Str( Procline(n)) + ", " + ProcFile(n) + ", " + ProcName(n)
next
?"*****"

And got this. MY Function is Rpt_003(), I was hoping it would show up somewhere.

*****
1, 0, , HB_HRBDO
2, 70, ..\source\exec.prg, EXECUTE
3, 0, ,
4, 0, ,
5, 0, ,
6, 0, ,
7, 0, ,
8, 0, ,
9, 0, ,
10, 0, ,
*****

Thanks,
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to get the source file name

Post by Antonio Linares »

Byron,

Please try it up to 20
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply