Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] View functions

From: ptretter::charter::net at: 17-Oct-2001 15:11

I'm new to programming but have been having a problem lately that had me quite stumped until I figured it out. Hopefully, someone can explain why this happens: Notice the two examples: Example1: view layout [button "example" [inform b: layout [toggle "I'm" "Broke" on button "Close" [hide-popup]]]] Example2: my-layout: layout [button "example" [inform crazy]] crazy: layout [toggle "I'm" "Broke" on button "close" [hide-popup]] view my-layout ------------------------------------------------- Notice in the second example that when you click the example button the second time to launch the second face that the item changes to that last selected toggle state. Seem the problem is related to defining a function with view statements prior to the main layout that calls the function containing the statements. Anyone want to explain this further.... Paul Tretter