| View previous topic :: View next topic |
| Author |
Message |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sun Jul 11, 2010 4:47 pm Post subject: Mac User and get GUI type |
|
|
Decided to write a third edition to my published book, and I wanted to test the following macro on a MAC
| Code: | Sub MainGetGui
Print GetGUIType()
End Sub |
Can anyone tell me what this returns on a MAC? _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Sun Jul 11, 2010 7:41 pm Post subject: |
|
|
Andrew,
according to online help a value of 3 will be returned.
Note: the same source says the return value isn't defined in a client-server environment. This may lead to the conclusion not using the runtime function at all.
edit: corrected value _________________ Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Last edited by probe1 on Mon Jul 12, 2010 1:09 am; edited 1 time in total |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sun Jul 11, 2010 7:48 pm Post subject: |
|
|
Did you run a test to verify this?
My version of the code mentions windows and Unix. There used to be specific mention for a mac in the help as returning a 3.
Does your help specifically claim that a Mac return a 4?
The source code reads as follows:
| Code: | #if defined (WNT)
rPar.Get(0)->PutInteger( 1 );
#elif defined OS2
rPar.Get(0)->PutInteger( 2 );
#elif defined UNX
rPar.Get(0)->PutInteger( 4 );
#else
rPar.Get(0)->PutInteger( -1 );
#endif |
My expectation is that it will return a 4 because current macs are based on Unix, but, I wanted to state that explicitly. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Mon Jul 12, 2010 12:58 am Post subject: |
|
|
Oh, yes...sorry for confusion.
I use 3.0.1/Linux and Help states:
| Quote: | Rückgabewerte:
1 : Windows
3 : Mac OS
4 : UNIX |
And no: never verify any other platform than Windows and Linux _________________ Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs |
|
| Back to top |
|
 |
|