Extracting a column
Éric Miclo
eric.miclo at wanadoo.fr
Mon Dec 10 06:55:44 EST 2007
Hello,
Thanks a lot!
I tried it with version ß 2.9 and wasn't able to make it work.
I've just given a try under 2.8.1 and it works perfectly.
Once again, thank you very much, best,
ÉrIC
Le 10 déc. 07 à 11:30, Klaus Major a écrit :
> Bonjour Éric,
>
>> Hello,
>>
>> Does somebody know if there is a "quick" way to extract a column
>> from a tab limited list (in a field or a variable)?
>> By "quick" I mean I'm not obliged to cycle through all the lines of
>> my var because it can be quite long.
>>
>> I've tried to use array but the transpose function doesn't work if
>> the number of columns is not the same as the number of lines.
>> Or can I do something else with an array to achieve that goal?
>
> use the new "split" command!
> ...
> put "your data here" into myvar
> put 2 into my_column
> ## The number of column you want to extract
> split myvar by column
> ## turns your data into an array!
> put myvar[my_column] into my_column_data
> ...
>
> Done :-)
>
>> Thanks, best,
>>
>> ÉrIC
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
-- My NeXT computer will Be a Mac too! --
More information about the use-livecode
mailing list