Hi Madhur,

Madhur Kashyap wrote (23-03-10 16:44)
On Tue, Mar 23, 2010 at 5:44 PM, Noelson Duarte <[email protected]> wrote:
StarBASIC has the function GETGUITYPE that returns a value for the OS.

Thats another valuable input I wasn't aware of. I dug more about this in
online help and found out that it would not differentiate between solaris
and linux. Is my understanding correct?

I think that is the case.

I need to support all three OS, viz., Windows_NT, Solaris and Linux.

This is how far I use it
If GetGuiType = 1 Then
  ' windows
ElseIf GetGuiType = 4 Then
  ' Linux
ElseIf GetGuiType = 3 Then
  ' Mac OS
Else
  MsgBox "unknown OS", 16
Else


Do you have influence on the systems where the extension is used? Then you can set an own environ var and use that:
  Environ("MyEnvironVar")

Regards,
Cor



--
 >> Your office 2010 software: the new OpenOffice.org <<

Cor Nouws
  - ideas/remarks for the community council?
  - http://wiki.services.openoffice.org/wiki/Community_Council


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to