Sorry again, I have a set of data that is:
Aberaeron - Harbour (Fourth Groyne North)
How could I make it so if any set of data has over one word that it only shows that one word in my variable.
For example, Aberaeron - Harbour (Fourth Groyne North) would ideally be Aberaeron.
Search found 9 matches
- Fri Feb 08, 2019 12:27 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help with splitting variable
- Replies: 2
- Views: 2626
- Thu Feb 07, 2019 11:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Re: Splitting Data on same line
Actually, I got it working.
Everyone thank you so much for the help!
Everyone thank you so much for the help!
- Thu Feb 07, 2019 11:51 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Re: Splitting Data on same line
Any idea how I could do it with the data I have?
If I understand the task correctly, you need something like this:
...
## The default item delimiter = COMMA, so need to set it here!
## tData is the list with the "city,number" pairs
repeat with i = 1 to the num of lines of tData
put item 1 of ...
- Thu Feb 07, 2019 11:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Re: Splitting Data on same line
That is correct, something like that would be ideal
- Thu Feb 07, 2019 11:18 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Re: Splitting Data on same line
@bogs
Thanks!
So something like
set the itemdelimiter to comma
Where would I put this in my code?
Thanks!
So something like
set the itemdelimiter to comma
Where would I put this in my code?
- Thu Feb 07, 2019 11:15 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Re: Splitting Data on same line
Sorry, just in a rush to figure this out.
I figured out that the code was designed for having one set of data on each line.
Any idea how I could do it with the data I have?
Hello btw
I figured out that the code was designed for having one set of data on each line.
Any idea how I could do it with the data I have?
Hello btw
- Thu Feb 07, 2019 10:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Splitting Data on same line
- Replies: 11
- Views: 7684
Splitting Data on same line
I'm doing a school project in school and my teacher does not even know how do to this.
I have data like the following:
Watwick,5
Welcombe Mouth,5
Wells - next - the - Sea,1
Wembury,1
Wemyss Bay,5
West Angle Bay,1
West-Bay,1
West Kirby,1
West Mersea,1
West Runton,5
West Sandwick Beach,1
West Voe ...
I have data like the following:
Watwick,5
Welcombe Mouth,5
Wells - next - the - Sea,1
Wembury,1
Wemyss Bay,5
West Angle Bay,1
West-Bay,1
West Kirby,1
West Mersea,1
West Runton,5
West Sandwick Beach,1
West Voe ...
- Thu Feb 07, 2019 10:42 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help me with this error
- Replies: 3
- Views: 3645
Re: Help me with this error
This is what the data looks like.
- Thu Feb 07, 2019 10:36 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Help me with this error
- Replies: 3
- Views: 3645
Help me with this error
This is the code, I'm trying to make a program that takes in data from a csv file and then splits the data into two different arrays, I am using a record structure.
This is the error I get when I try run: How can i fix this?
This is the error I get when I try run: How can i fix this?