2. April 2009 14:38
2. April 2009 15:14
2. April 2009 15:19
7. Mai 2009 14:52
7. Mai 2009 14:59
3. Juli 2009 16:04
8. April 2013 14:41
15. März 2017 17:03
15. März 2017 17:54
IF GUIALLOWED THEN
EXIT(ClientEnvironment.MachineName)
ELSE
EXIT(ServerEnvironment.MachineName);
Name DataType Subtype RunOnClient
ClientEnvironment DotNet System.Environment.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Yes
ServerEnvironment DotNet System.Environment.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' No
19. Oktober 2023 11:01
PROCEDURE EnvironBC@1000000071(Environtext@1000000002 : Text) : Text;
VAR
ClientEnvironment@1000000000 : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Environment" RUNONCLIENT;
ServerEnvironment@1000000001 : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Environment";
ClientEnvironmentSpecialFolder@1000000003 : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Environment+SpecialFolder" RUNONCLIENT;
ServerEnvironmentSpecialFolder@1000000004 : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Environment+SpecialFolder";
BEGIN
IF GUIALLOWED THEN BEGIN
// RunOnClient = Yes
CASE Environtext OF
'',' ': EXIT('::=::');
'OS': EXIT(FORMAT(ClientEnvironment.OSVersion.Platform));
'OSVERSION': EXIT(FORMAT(ClientEnvironment.OSVersion));
'TEMP': EXIT(ClientEnvironment.GetEnvironmentVariable('TEMP'));
'WINDIR': EXIT(ClientEnvironment.GetFolderPath(ClientEnvironmentSpecialFolder.Windows));
'SYSTEM': EXIT(ClientEnvironment.GetFolderPath(ClientEnvironmentSpecialFolder.System));
'SYSTEMX86': EXIT(ClientEnvironment.GetFolderPath(ClientEnvironmentSpecialFolder.SystemX86));
'SENDTO': EXIT(ClientEnvironment.GetFolderPath(ClientEnvironmentSpecialFolder.SendTo));
ELSE
EXIT('');
END;
END ELSE BEGIN
// RunOnClient = No
CASE Environtext OF
'',' ': EXIT('::=::');
'OS': EXIT(FORMAT(ServerEnvironment.OSVersion.Platform));
'OSVERSION': EXIT(FORMAT(ServerEnvironment.OSVersion));
'TEMP': EXIT(ServerEnvironment.GetEnvironmentVariable('TEMP'));
'WINDIR': EXIT(ServerEnvironment.GetFolderPath(ServerEnvironmentSpecialFolder.Windows));
'SYSTEM': EXIT(ServerEnvironment.GetFolderPath(ServerEnvironmentSpecialFolder.System));
'SYSTEMX86': EXIT(ServerEnvironment.GetFolderPath(ServerEnvironmentSpecialFolder.SystemX86));
'SENDTO': EXIT(ServerEnvironment.GetFolderPath(ServerEnvironmentSpecialFolder.SendTo));
ELSE
EXIT('');
END;
END
END;