Changing the contents of a custom property
    Klaus Major 
    klaus at major-k.de
       
    Fri Jan 21 18:37:07 EST 2005
    
    
  
Hi Glen,
> I have a custom property called connectorName that currently has the
> following contents
>
> darpa
> nrl
> hsecurity
>
> I am trying to figure out how I can delete one or more than one of the
> contents via script.
No need for an extra stack ;-)
on mouseup
    put the connectorName of xyz into tempCP
    delete line 1 of tempCP
    ## delete whatever you want...
    set the connectorName of xyz to tempCP
end mouseup
> Also, how to add new content via script.
No need for an extra stack ;-)
on mouseup
    put the connectorName of xyz into tempCP
    if tempCP = empty then
        put "New line" into tempCP
    else
       put CR & "New line" after tempCP
   end if
    set the connectorName of xyz to tempCP
end mouseup
> Is there an example stack available?
See above.
> thanks,
You're welcome.
> Glen
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
    
    
More information about the use-livecode
mailing list