to differentiate between runmode and browsemode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
selvabits
Posts: 13
Joined: Tue Jul 17, 2007 4:30 pm

to differentiate between runmode and browsemode

Post by selvabits » Mon Jul 23, 2007 4:29 pm

can anyone please tell me how to differentiate between runmode and browsemode using script itself ........
i dont want certain parts of my on openstack to be executed while it is in browsemode ... so i want to know if it is runmode or browsemode and then execute it only if it is in runmode

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Jul 23, 2007 6:33 pm

Hola selvabits,

to make it clear:
run mode = browse (NOT edit) mode
edit mode = edit! mode

Code: Select all

...
if the tool = "browse tool" then
  ## you are in browse mode
  ## do your browse thingie
else
  ## in this case "THE TOOL" = "pointer tool"
  ## you are in edit mode
  ## do your edit thingie
end if
...

Best from germanski

Klaus

Post Reply