I am reading data from a file which uses '*' as a separator between fields. When I put 'it' into my field, it includes my separator. How would I prevent the separator from being added.
Data:
12345*6789*
read from file "settings.dat" until "*"
put it into field "Total1"
value of Total1 is 12345*. I require the value to be 12345.
Thanks!
Warren
Reading From File
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Simply add the following after your 'read' command.
HTH,
Jan Schenkel.
Code: Select all
delete char -1 of it
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com