In the code below the reason I delete chars is because I am actually
replacing
the same line twice but the first time that line has id= before it
with no .jpg while
the second time it has thumbs/ before it and a .jpg after.
Any ideas on how to accomplish this task?
-=>JB<=-
On Jun 7, 2009, at 12:48 PM, -= JB =- wrote:
The original script is more complex than the one I relayed before.
I have a field with
a bunch of text and then I have a field with a number of lines of
chars that now match
the chars in my field with text. I also have a field with a number
of lines of chars that
will replace each line of text in the second field which will be
the actual text I end up
with in the first field.
Here is the code,
on mouseUp
put fld id 1014 into findText
put fld id 1017 into newText
repeat with n = 1 to number of lines in fld id 1014
put "id=" & line n of findText into findCode
repeat 4 times
delete last char of findCode
end repeat
--answer findCode
put "id=" & line n of findText into replaceCode
repeat 4 times
delete last char of replaceCode
end repeat
--answer replaceCode
put line n of newText into newCode
repeat 4 times
delete last char of newCode
end repeat
--answer newCode
--exit to top
put replacetext(findCode, replaceCode, newCode) into fld id
1004
end repeat
repeat with n = 1 to number of lines in fld id 1014
put "thumbs/" & line n of findText into findCode
put "thumbs/" & line n of findText into replaceCode
put line n of newText into newCode
--put replacetext(fld id 1004, findCode, replaceCode, newCode)
put replacetext(findCode, replaceCode, newCode) into fld id
1004
end repeat
end mouseUp
I did forget it was a function and tried to use the put as can be
seen above
but got an error.
regards,
-=>JB<=-
On Jun 7, 2009, at 12:28 PM, Mark Schonewille wrote:
OK, JB, Could you post your actual script? Do you realise that
this is a function, not a command? You need to use "put".
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com
If you sent me an e-mail before 15 May and haven't got a reply
yet, please send me a reminder.
On 7 jun 2009, at 21:30, -= JB =- wrote:
Hi Mark,
error 573 handler can't find handler
-=>JB<=-
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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