path of an opened dbf file.
Moderator: Rathinagiri
path of an opened dbf file.
Hi to everybody
Is there anybody who knows how to know the full path of an opened dbf file ?
I am looking for a function like this:
filepath := dbfpath(alias())
Thank you
Vieri
Is there anybody who knows how to know the full path of an opened dbf file ?
I am looking for a function like this:
filepath := dbfpath(alias())
Thank you
Vieri
-
- Posts: 1275
- Joined: Tue Sep 03, 2013 4:22 am
- Location: Tecámac, México
Re: path of an opened dbf file.
Hola vierirom,
#define DirActual GetCurrentFolder() +"\"
Public ccDirData := DirActual + "Data\"
Espero te sirva
Saludos
#define DirActual GetCurrentFolder() +"\"
Public ccDirData := DirActual + "Data\"
Espero te sirva
Saludos
Re: path of an opened dbf file.
Hola Javier
Thank you for your answer.
I need to find the actual path of an already opened dbf file.
If I write:
use mydbf alias mydbf new.
It tryes to open the dbf in set(_set_default)
If it doesn't find the file in (_default) it tryes to find it the path stream... (set(_set_path))
so.. if the file is opened I'm not sure where ACTUALLY the file has been found.
So I need the function to find the actual path of the already opend dbf file.
Thank you for your cooperation
Vieri
Thank you for your answer.
I need to find the actual path of an already opened dbf file.
If I write:
use mydbf alias mydbf new.
It tryes to open the dbf in set(_set_default)
If it doesn't find the file in (_default) it tryes to find it the path stream... (set(_set_path))
so.. if the file is opened I'm not sure where ACTUALLY the file has been found.
So I need the function to find the actual path of the already opend dbf file.
Thank you for your cooperation
Vieri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
path of an opened dbf file - FULLPATH
Hi Vieri,
you will find this usefull:
Rgds
you will find this usefull:
Code: Select all
#include "Dbinfo.ch"
use mydbf alias mydbf new
MsgDebug( dbInfo( DBI_FULLPATH ) )
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: path of an opened dbf file.
Hi Pablo.
You are wonderful !!!
3 hard deep search days on the web !!! and nothing came out !!!
The function is exactly what I am looking for.
Thank you very much.
Vieri Romagnoli
You are wonderful !!!
3 hard deep search days on the web !!! and nothing came out !!!
The function is exactly what I am looking for.
Thank you very much.
Vieri Romagnoli
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: path of an opened dbf file.
That is so nice Pablo. Thanks a lot.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
path of an opened dbf file.
Good to know is usefull for you. Thanks guys.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 1275
- Joined: Tue Sep 03, 2013 4:22 am
- Location: Tecámac, México
Re: path of an opened dbf file.
Excelente Pablo César, muy bueno y bonito!
Saludos
Saludos
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
path of an opened dbf file.
Gracias, Javier.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
-
- Posts: 22
- Joined: Wed Dec 20, 2017 8:29 am
- DBs Used: DBF
- Location: Belgium
Re: path of an opened dbf file.
Hi everybody,
I also need to find the path of an already opened dbf file.
And I would like to use dbinfo() that I found very usefull.
So I do :
....bla bla
Filepath := dbInfo(DBI_FULLPATH)
.... bla bla
@ P_row,P_col PRINT "File Path : "+alltrim(Filepath) FONT cFont1 SIZE nFontSize1
But it only print the filename, not the full path!
Anyone know why?
Thank you,
Dominique
I also need to find the path of an already opened dbf file.
And I would like to use dbinfo() that I found very usefull.
So I do :
....bla bla
Filepath := dbInfo(DBI_FULLPATH)
.... bla bla
@ P_row,P_col PRINT "File Path : "+alltrim(Filepath) FONT cFont1 SIZE nFontSize1
But it only print the filename, not the full path!
Anyone know why?
Thank you,
Dominique