To get all envaironment variables

90 views
Skip to first unread message

Quique

unread,
Sep 7, 2022, 1:47:30 PM9/7/22
to Harbour Users
There is some function or some way to get all envaironment variables.

I know I can use getenv() but the problem is I don't know what variables exist, It some like show the variables list to the user and so he to make decisions.

Klas Engwall

unread,
Sep 7, 2022, 4:22:07 PM9/7/22
to harbou...@googlegroups.com
Hi Quique,
The hbct function EnvParam() will give you that as a single string
(including linefeeds). Then you can user hb_Atokens() to convert it to
an array if you prefer that kind of output.

Regards,
Klas

Quique

unread,
Sep 8, 2022, 10:37:01 AM9/8/22
to Harbour Users
Thanks you, it's that I need.
Reply all
Reply to author
Forward
0 new messages