New Stacks
Ken Ray
kray at sonsothunder.com
Wed Sep 10 12:40:01 EDT 2003
Richmond,
You need to be careful with your if/else statements. I ran your code
below for getting "the processor" on my WinXP PC and it turned up "Old
Fashioned Macintosh". Your code:
on mouseDown
if the processor = "x86" then put "MicroSoft Windows OS" into field
"M"
if the processor = "unknown" then put "Unix OS" into field "M"
if the processor = "Motorola PowerPC" then put "Power Macintosh" into
field "M"
else put "Old-Fashioned Macintosh" into field "M"
end mouseDown
would be better in a switch statement:
on mouseDown
switch (the processor)
case "x86"
put "Microsoft Windows OS" into fld "M"
break
case "unknown"
put "Unix OS" into fld "M"
break
case "Motorola PowerPC"
put "Power Macintosh" into fld "M"
break
case "Motorola MC68000"
put "Old Fashioned Macintosh" into fld "M"
break
end switch
end mouseDown
HTH,
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Mathewson
> Sent: Wednesday, September 10, 2003 8:35 AM
> To: use-revolution at lists.runrev.com
> Subject: New Stacks
>
>
> Dear RunRev afficionados,
>
> I have just uploaded to my website a new stack called
> 'SYSTEM INFO', which..... returns all sorts of System Info
> to the user.
>
> I have also just uploaded a new version of my revTools.rev
> hack incorporating a slimline version of the SYSTEM INFO
> stack.
>
> Love, Richmond __________________________________________________
> See Mathewson's software at:
>
http://members.maclaunch.com/richmond/default.html and
http://www.runrev.com/Revolution1/developercentral/usercontributions.htm
l
__________________________________________________
---------------------------------------------------------------
Great Macintosh Products
The MacLaunch Store!
http://www.maclaunch.com/cgi-launch/store/agora.cgi
---------------------------------------------------------------
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list