How to edit a script with a script?
    Reinhold Venzl-Schubert 
    r.venzl-schubert at t-online.de
       
    Mon Jan 16 02:09:47 CST 2006
    
    
  
Hi Larry Huisingh and Ken Ray
I learned a lot about to use of "quote", "replace" and "format"
Thanks for it
Reinhold
>     add CR & "on mousedown" & CR & "if the visible of btn " & quote &\
>         "Krtgeaendert" & quote & " then" & CR & "grab me" & CR & "end
> if" &\
>         CR & "end mousedown" to ScriptMerk
> 1) Use backquotes for placeholders, and replace them later with  
> regular
> quotes:
>
>   put ScriptMerk & CR & "on mousedown" & CR & \
>     "if the visible of btn `Krtgeaendert` then" & CR &
>     "grab me" & CR & "end if" & CR & "end mousedown" into ScriptMerk
>   replace "`" with quote in ScriptMerk
>
> 2) Use the format() function, which lets you embed quotes in a  
> string as \"
> and CRs as \n:
>
>   put ScriptMerk & format("\non mousedown\n") & \
>     format("if the visible of btn \"Krtgaendert\" then") & \
>     format("\ngrab me\nend if\nend mousedown") into ScriptMerk
>
    
    
More information about the metacard
mailing list