Search found 7 matches
- Mon Mar 03, 2025 5:11 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Get the last two columns
- Replies: 34
- Views: 36764
Re: Get the last two columns
hello guys, hope you're doing well. I'm sry for the late reply as my pc was giving troublesome, so I had to send it to servicing center. Anyway, let's come to the topic. First I've tried the below code written by me with the help of richmond62: open file dFile for write -- dFile is the destination t...
- Sun Feb 23, 2025 6:09 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Get the last two columns
- Replies: 34
- Views: 36764
Re: Get the last two columns
So what I've learnt is, array thing is only possible when all the lines have the equal number of items, and subkeying with negative numbers isn't possible to start column counting from the last what is possible only in repeat loop. Btw, it just put me in more tension after I was informed that the te...
- Sun Feb 23, 2025 12:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Get the last two columns
- Replies: 34
- Views: 36764
Re: Get the last two columns
thanks Jean-Marc for your solution; but as I said I actually trying to avoid repeat loop as my pc might not be able to handle 300-500 mb size data with repeat loop
Do you have any idea to get the result using array?

- Sun Feb 23, 2025 5:10 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Get the last two columns
- Replies: 34
- Views: 36764
Get the last two columns
Hello, I'm trying to get some info from a text file, and the data of the text file looks like this: Gainesville,Libra,5684,1987,Hurp1987,Bedford Feather Sound,3513,1942,Jons1942,Flores Marysville,Sagittarius,6638,1963,Subjes,Williams Orange,Leo,5592,1986,38,Dandrall,Wolf As you can see each line has...
- Sun May 30, 2021 7:17 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Randomize Lines of a Large Text File
- Replies: 21
- Views: 11537
Re: Randomize Lines of a Large Text File
well, my program checks every line in a text file based on some given condition, and gets me the lines according to the condition given what I need is to randomize the lines so the chance to get the expected lines faster since the lines are categorized and I don't know from which line a new categori...
- Sat May 29, 2021 4:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Randomize Lines of a Large Text File
- Replies: 21
- Views: 11537
Re: Randomize Lines of a Large Text File
thanks to all of you who took your valuable time for me to help. btw, who are interested to know of my purpose...actually the data in that large text file are categorized...say for example, first 1/3 are cat 1, then 2/3 cat 2, and 3/3 is cat 3...but I don't want it like that...I want it to mix up al...
- Fri May 28, 2021 1:00 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Randomize Lines of a Large Text File
- Replies: 21
- Views: 11537
Randomize Lines of a Large Text File
hello everybody, hope you're doing good. by the way, I was trying to randomize the lines of large a text file (around 100 mb). so for the first time, I used this method: put empty into temp answer file "Select a Text File:" with type "Text File|txt" put it into ifile put url ("file:" & ifile) into t...