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
_______________________________________________
metacard mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/metacard