Hi Bob,

I ran your handler here and it works!
... If you quote all text values :-)
So, you might only prefer a more rigorous formulation:

on mouseUp
  switch the selectedtext of button "om1"
  case "text field"
    copy field "text" of stack "Build from XDF" to stack "Destination"
    set the name of it to "Field1"
    break
  case <another case>
    <statements>
    break
    ...
    default
    answer error "There was an error" with "Sorry"
  end switch
end mouseUp

Le 16 janv. 06 à 23:03, Bob Hartley a écrit :

I have one stack "Build from xdf" that has a text field called "text"> I'll change this soon. I want to copy this to a test stack called destination.
This is dependent on a menu chioce.

I can get the button I have with the handler, to perform insertion of text into a field depending on the menu choice (menui is om1), however, when I
make this button with the field copy script nothing happens.

Anything wrong with this?

on mouseUp
  put the selectedtext of button om1 into OM1temp
  if OM1temp is "text field" then
    copy field "text" of stack "Build from XDF" to stack Destination
    set the name of it to "Field1"
    end if
end mouseUp

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ ----------------------
http://www.sosmartsoftware.com/    [EMAIL PROTECTED]/


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to