Expanding environment tips

c_verbiest

New Member
I was looking for a way to expand strings containing environment variables (DOS/windows style), when I did not find one I wrote a function in 4GL to do the job.

%% is replaced by %
%name% is replaced by os-getenv("name").

Sample code in attachment
 

Attachments

Back
Top