copy field from one stack to another

Bob Hartley rev at armbase.com
Tue Jan 17 02:37:51 EST 2006


You wrote:

> Hi Bob,
Hi Eric

I have a similar menupick in the optionbutton of another stack. I didn't
realise you could do this with a button.
This is a top tip for me.

I'lll give it a go later on.

Best regards and thanks again
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/
> eric.chatonet at sosmartsoftware.com/
> 
> 
> _______________________________________________ use-revolution mailing
> list use-revolution at lists.runrev.com Please visit this url to subscribe,
> unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list