On 2/3/05 2:14 PM, Sivakatirswami wrote:
Ah... but that puts us back to original issue, Revolution *did* quit, immediately after running the print job, even though the menuPick parameter was only "Print" ... it processed the next case
It's supposed to. A switch statement will process every line it encounters until it sees a "break" or until the switch construct ends. It doesn't matter if other "case" statements are scattered in there or not; as soon as one "case" matches, a switch construct just starts processing every line until a break, ignoring any other "cases" in the way.
They aren't like "if"s, which only process lines in between the "if/else/end if" sections.
on menuPick pWhichItem
switch pWhichItem case "Print" printTranscript case "Quit" save this stack quit break end switch
end menuPick
# result: print job is done, Revolution quits
on menuPick pWhichItem
switch pWhichItem case "Print" printTranscript break case "Quit" save this stack quit break end switch
end menuPick
# result: print job done; Revolution stays alive.
??
-- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
