data manipulation

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kotikoti
Posts: 72
Joined: Tue Apr 15, 2008 7:35 pm

data manipulation

Post by kotikoti » Tue May 06, 2008 9:38 pm

Hi All,
Hope the title fits my query.
I am reading the data from a text file and this returns data similar to

Code: Select all

USB Mass Storage Device	USB\VID_054C&PID_0243\2A07110306315
USB Mass Storage Device	USB\VID_054C&PID_0243\2A07110306715
I need to use the last item (delimeter being "\") to process the next segment of code for each line encountered in a repeat for loop.

Query:
1). How do I capture this last item
2). My other files to use in subsequent processing is tab delimited, I believe the solution to one should point me to this one's else if different, please advice

Thanks.
Build 160
Version 2.9.0
Platform: Windows

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Re: data manipulation

Post by keyless » Wed May 07, 2008 12:43 am

kotikoti wrote:Hi All,
Hope the title fits my query.
I am reading the data from a text file and this returns data similar to

Code: Select all

USB Mass Storage Device	USB\VID_054C&PID_0243\2A07110306315
USB Mass Storage Device	USB\VID_054C&PID_0243\2A07110306715
I need to use the last item (delimeter being "") to process the next segment of code for each line encountered in a repeat for loop.

Query:
1). How do I capture this last item
2). My other files to use in subsequent processing is tab delimited, I believe the solution to one should point me to this one's else if different, please advice

Thanks.
You are going to want to put the data from txt into a variable. then you are going to want to:
set item delimitor to ""
Repeat for each line lVariableName of lWhereDataIs
put item -1 & cr after lAnotherVariableName

Post Reply