hello!
i'm looking for an easy way to find out the current computername. searching the forum i found a topic where the environmental variable %COMPUTERNAME% was mentioned.
well, but how can i read this variable? i tried out
sCN:= ENVIRON(Computername);
but the result is nonsens.
environment: windows 2000, navision 3.60
can anyone give an advice?
thx
jam176
Comments
Jan Hoek
Product Developer
Mprise Products B.V.
jam176
Jan Hoek
Product Developer
Mprise Products B.V.
Try :
MESSAGE('%1',ENVIRON('COMPUTERNAME'));
It works ...
thanx again jhoek!
jam176
Jan Hoek
Product Developer
Mprise Products B.V.
the environ() call is inside a table, where computername is a tablefield! when i called computername without the qoutes i got the fielddata instead of the environmental varible.
thank you all!
jam176
Field names should be in English, and in that language, I believe ["computername"] would be written as "computer name" (with a space). In this particular case, spelling the field name like that would have prevented some rather time-consuming troubleshooting...
And yes, I know, I should mind my own business...
Jan Hoek
Product Developer
Mprise Products B.V.