Delete lines in files (text files)
Richard Gaskin
ambassador at fourthworld.com
Thu Jan 17 14:52:42 EST 2008
Devin Asay wrote:
> On Jan 17, 2008, at 12:37 PM, Randall Lee Reetz wrote:
>> Wow, i gave the supercard syntax, lots more verbose, (better
>> question: how do you delete a line of script?).
>
> How about (not tested):
>
> get the script of btn "myBtn"
> delete line 4 of it
> set the script of btn "myBtn" to it
>
> I think you might run up against the 10-line script limitation if you
> were doing this in a standalone app. Anybody know for sure?
Any script longer than 10 lines cannot be put into an object at runtime.
Randall, why do you need to edit the script at runtime? I'll bet
there's a more efficient solution we may be able to come up with for you.
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list