A suggestion for the dbusearea()

119 views
Skip to first unread message

Itamar Lins

unread,
Jul 18, 2026, 1:04:35 PM (6 days ago) Jul 18
to Harbour Users
Hi!
It would be interesting for the dbusearea() function to accept the "~" parameter to open a file in the Linux user's home directory.

Here get a error ->  dbUseArea(.T., "DBFCDX", "~/database/mydata.dbf", "DBF_EST", .T.)

Works ->  dbUseArea(.T., "DBFCDX", "/home/itamar/database/mydata.dbf", "DBF_EST", .T.)

Best regards,
Itamar M. Lins Jr.

Francesco Perillo

unread,
Jul 18, 2026, 1:09:38 PM (6 days ago) Jul 18
to harbou...@googlegroups.com
I think the tilde is a bash thing.

There should be a ENV variable set to the home dir, or you should process /etc/passwd 


--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/b34c0f7b-aae4-4e50-a95e-bf402b034d70n%40googlegroups.com.

Daniel Lopes Filho

unread,
Jul 18, 2026, 4:57:56 PM (6 days ago) Jul 18
to harbou...@googlegroups.com
Try $home width getenv 

Lopes Informática
67-9-9202-9422 (tim)
67-9-9676-8637 (vivo/whatsapp)

Reply all
Reply to author
Forward
0 new messages