GLBasic forum

Main forum => FAQ => Topic started by: aroldo on 2012-Jan-04

Title: How can I get the platform ID?
Post by: aroldo on 2012-Jan-04
Happy New Year to all !

I wounder if there is a way to know, programatically, if GLBasic is running on a PC or a mobile platform?
Title: Re: How can I get the platform ID?
Post by: Crivens on 2012-Jan-04
Look in the user manual for:-
?IFDEF WIN32
?IFDEF WEBOS
?IFDEF IPHONE

There are more but that should get you on the right path.

Cheers
Title: Re: How can I get the platform ID?
Post by: Ian Price on 2012-Jan-04
Code (glbasic) Select

PLATFORMINFO$("DEVICE")

is good too.
Title: Re: How can I get the platform ID?
Post by: michael on 2012-Jan-05
PLATFORMINFO$("DEVICE") is nice but has someone a good peace of code to get the ios version of the iphone ?
asking because I have some code who makes problem with ios5 !!!!
Title: Re: How can I get the platform ID?
Post by: aroldo on 2012-Jan-06
Thank you. :nw: