There is a difference in the LC 5.5 pickList

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

There is a difference in the LC 5.5 pickList

Post by FireWorx » Fri May 11, 2012 9:54 pm

Just noticed a distinct difference in the LC IOS pick list over that in 5.0. My stack was going haywire.

In 5.0 you could pull data out of a text file with lines skipped for formatting purposes and display them in an IOS pick wheel and the lines would remain blank in the pick wheel. for example

Header Title 1
Sub Choice 1
Sub Choice 2

Header Title 2
Sub Choice 1
Sub Choice 2

Clicking on line "Header Title 2" would return 5 (for line 5) in LC 5.0 But in LC 5.5 it will return 4 (blank lines are omitted) Sometimes LC 5.5 forces the blank line out of the pick wheel scrunching everything up and occasionally it doesn't and leaves a blank line in the pic wheel just as it is in the field or text file. Why is this a problem for me? Because I take 150 lines of a text file with each line having a variable amount of items. such as
Sub Choice 1,SD53,SD54,SD55,SD58
Sub Choice 2,SD21,SD63

The user doesn't need to see the whole array just the sub choice (I parse Item 1 of each line away from the source text and display it for the user to chose from). Then I cross reference back to the text file once the user selects the line number in the pickwheel and gather the data from the matching line in the text file. The problem? Live Code omits the blank lines (most of the time but not always as it displays the data in the pick wheel) So I can't rely on LC returning a matching line from the source text. SO I guess I remove all the blank lines from the source text and then hopefully all will match up.

I was wondering why I was getting completely random response to my pick wheel selections in 5.5 when it worked perfectly in 5.0.
Hope this helps some one else.
Dave

Post Reply