Delete lines in files (text files)

Randall Lee Reetz randall at randallreetz.com
Thu Jan 17 15:00:57 EST 2008


Actually richard,  this thread ran away on me... But i didn't know about this ten line limit?  That seems strange.  Why is that limit there?  And, yes i want to know how to fake it.

randall

-----Original Message-----
From: "Richard Gaskin" <ambassador at fourthworld.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: 1/17/2008 11:52 AM
Subject: Re: Delete lines in files (text files)

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
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list