Thank you very much jacque and Thierry. You have both given me much to work with and made me realise how much I have to learn (again) about Livecode.
Much appreciated.
Darryl
Search found 5 matches
- Tue Nov 03, 2015 1:08 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with parsing a text file
- Replies: 9
- Views: 5507
- Sat Oct 31, 2015 6:38 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with parsing a text file
- Replies: 9
- Views: 5507
Re: Help with parsing a text file
So I have finished my little project.
To recap, I wanted to be able to read in a text file that I receive every day from a bank of transactions paid into our account and extract the relevant information, then copy it to the clipboard so it could be pasted into a spreadsheet.
The text file isn't ...
To recap, I wanted to be able to read in a text file that I receive every day from a bank of transactions paid into our account and extract the relevant information, then copy it to the clipboard so it could be pasted into a spreadsheet.
The text file isn't ...
- Thu Oct 29, 2015 10:35 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with parsing a text file
- Replies: 9
- Views: 5507
Re: Help with parsing a text file
Hi dazza101,
Sorry, was thinking you were just looking for the line with the relevant info. Try pasting and using code formatting (button at the top).
other;
on mouseUp
put fld 1 into temp
put lineoffset("ACCOUNT AMOUNT CUSTOMER NAME TRACE TXN-DATE",temp) into tLine
put line (tLine + 1) of fld ...
Sorry, was thinking you were just looking for the line with the relevant info. Try pasting and using code formatting (button at the top).
other;
on mouseUp
put fld 1 into temp
put lineoffset("ACCOUNT AMOUNT CUSTOMER NAME TRACE TXN-DATE",temp) into tLine
put line (tLine + 1) of fld ...
- Thu Oct 29, 2015 4:52 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with parsing a text file
- Replies: 9
- Views: 5507
Re: Help with parsing a text file
Hi dazza101,
Welcome to the forum!
What about using lineoffset +1?
Simon
Thanks Simon, but I'm not following your suggestion. lineoffset returns the line number on which the specified search text is found. Correct? Are you suggesting using lineoffset with a regex for spaces, numeric chars ...
Welcome to the forum!
What about using lineoffset +1?
Simon
Thanks Simon, but I'm not following your suggestion. lineoffset returns the line number on which the specified search text is found. Correct? Are you suggesting using lineoffset with a regex for spaces, numeric chars ...
- Thu Oct 29, 2015 4:06 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with parsing a text file
- Replies: 9
- Views: 5507
Help with parsing a text file
I have dabbled with LiveCode many years ago, but have only just started to work with it again. I am trying to write a simple program to parse some text from a text file.
The file isn't delimited and looks like this:
GENERAL 1 BANK PAGE 1
TRACING REPORT BY VENDOR RUN DATE 07/03/15
RUN TIME 00 ...
The file isn't delimited and looks like this:
GENERAL 1 BANK PAGE 1
TRACING REPORT BY VENDOR RUN DATE 07/03/15
RUN TIME 00 ...