How to get the source file name

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

How to get the source file name

Postby byron.hopp » Fri May 01, 2020 5:32 am

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: How to get the source file name

Postby Antonio Linares » Fri May 01, 2020 6:03 am

Byron,

Please run this and tell you what you get:

Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to get the source file name

Postby byron.hopp » Fri May 01, 2020 6:23 am

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

Re: How to get the source file name

Postby byron.hopp » Fri Jun 19, 2020 8:02 pm

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: How to get the source file name

Postby Antonio Linares » Sat Jun 20, 2020 9:58 am

Byron,

Please try it up to 20
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 11 guests