Have a look at the environment function in the dictionary... this function will 
be your friend in the circumstances in which you find yourself... for example

on openCard
   if environment() = "mobile" then
      do it this way
   end if
   
   if environment() = "development" then
      do it another way
   end if
end openCard

'less cross-platform than one might hope'... I don't think so. How many other 
development environments can you think of that tackle Mac, Windows, Linux, iOS 
and Android not too mention the server platform...

And I have to disagree with you on the point of clarity as it was clear to 
me... using a function like environment() I see as a staple ingredient in being 
able to develop croos-platform apps quickly and easily, and .. err... it's been 
around since version 1.0

John Dixon


> On 22/02/2012 07:37, Graham Samuel wrote:
> > Ken I AM using your code, and very grateful I am for it; but that doesn't 
> > stop me being worried by RunRev apparently altering the engine to be 
> > slightly less cross-platform than one might hope, and then not being very 
> > clear about it. IMHO this is bad news for old dogs like me, and worse for 
> > people trying to learn LC for the first time.

                                          
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to