delete and put empty in url file: structures
Hi, all. I am wondering if I have found a bug in runrev version 2.2 running under mac os x.3.3. here is the problem: if i have a script line that goes delete line x of url file:someFile.txt the script crashes saying that the object cannot be found but if i change the script to: put empty into line x of url file:someFile.txt then the script works. Even the transcript docs say that delete and put empty... are equivalents. Why would the script crash with delete then but not with put empty? I know there are no other errors with this script (ie, the problem isn't about finding files or anything like that, it's _strictly_ about deleting a line), though I'm not sure if the error occurs with every call to delete a line in every url file structure. this drove me batty this morning, till i figured out what the problem was. thanks. rand valentine ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: delete and put empty in url file: structures
On Thursday, May 20, 2004, at 08:21 AM, rand valentine wrote: Even the transcript docs say that delete and put empty... are equivalents. These are not equivalent. The 'delete' will get rid of a delimiter when appropriate. I don't know whether that relates to your problem or not. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: delete and put empty in url file: structures
On Thursday, May 20, 2004, at 10:21 AM, rand valentine wrote: Hi, all. I am wondering if I have found a bug in runrev version 2.2 running under mac os x.3.3. here is the problem: if i have a script line that goes delete line x of url file:someFile.txt the script crashes saying that the object cannot be found but if i change the script to: put empty into line x of url file:someFile.txt then the script works. Even the transcript docs say that delete and put empty... are equivalents. They aren't really equivalent. Suppose you start with somevar equal to 1 2 3 and you say delete line 2 of somevar. You then get 1 3 but if you say put empty into line 2 of somevar you would get 1 3 So they aren't really the same. Why would the script crash with delete then but not with put empty? Check out the whole thing. Perhaps you don't actually have that line! Putting empty into a line you don't have creates the line, by the way. know there are no other errors with this script (ie, the problem isn't about finding files or anything like that, it's _strictly_ about deleting a line), though I'm not sure if the error occurs with every call to delete a line in every url file structure. this drove me batty this morning, till i figured out what the problem was. thanks. rand valentine ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: delete and put empty in url file: structures
On May 20, 2004, at 7:21 AM, rand valentine wrote: Hi, all. I am wondering if I have found a bug in runrev version 2.2 running under mac os x.3.3. here is the problem: if i have a script line that goes delete line x of url file:someFile.txt Dear Rand, Try reading in the contents of the file. Delete the line you wish. Then write out the new contents to the same file. -- Best regards, Mark Talluto http://www.canelasoftware.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: delete and put empty in url file: structures
On Thursday, May 20, 2004, at 08:21 AM, rand valentine wrote: delete line x of url file:someFile.txt the script crashes saying that the object cannot be found ... put empty into line x of url file:someFile.txt Sometimes error messages miss the mark. Could x be a zillion? Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution