I know that I said I was done after part eight, but I've had a report of some additional functionality that I thought I should add.
5 - Uniface "usys" directory
As previously discussed, using numeric code "5" returns the working directory. However, you can also use it to display the Uniface "usys" directory...
interrupt(5,"USYS")
uniface = $result
EDIT: Thank you to James Rodger for pointing out the alternative in his comment...
This in itself seems to be an undocumented feature; I can't find any reference to "usys:" being accessible like this in $fileproperties or $lfileproperties.
I tried to access some other Uniface directories in a similar way, such as "adm" and "bin", but it seems that you can only access "usys".
Thank you to Mark R for point this one out.
5 - Uniface "usys" directory
As previously discussed, using numeric code "5" returns the working directory. However, you can also use it to display the Uniface "usys" directory...
interrupt(5,"USYS")
uniface = $result
EDIT: Thank you to James Rodger for pointing out the alternative in his comment...
uniface = $valuepart($fileproperties("usys:","FULLPATH"))
This in itself seems to be an undocumented feature; I can't find any reference to "usys:" being accessible like this in $fileproperties or $lfileproperties.
I tried to access some other Uniface directories in a similar way, such as "adm" and "bin", but it seems that you can only access "usys".
Thank you to Mark R for point this one out.