Tab delimited data not working...
thierry Douez
douez at wanadoo.fr
Fri Mar 26 09:08:27 EST 2004
Hi Glen,
well, the chunk "word n" is giving you the nth word of the string;
so, it's right but using item will work as you ask for !
set the itemdelimiter to tab
put item 3 of line 1 of fld "data"
-- 23 tab 35 tab 76 tab 55 tab 99
-- gives ==> 76
put item 3 of line 1 of fld "data"
-- 23 tab tab tab 76 tab 55 tab 99
-- gives ==> empty
put item 5 of line 1 of fld "data"
-- 23 tab tab tab 76 tab 55 tab 99
-- gives ==> 55
HTH
regards, thierry
| I have a field which is filled with tab delimited data there will
| always be some "missing data" by the nature of the type of data being
| collect.
|
| I have set the itemDelimiter to tab but that does not solve the
| problem??
|
| Example below I've "typed" the word tab to help explain
|
| 23 tab 35 tab 76 tab 55 tab 99
| -- put word 3 of line 1 of fld "data"
| ==> 76
| 23 tab tab tab 76 tab 55 tab 99
| -- put word 3 of line 1 of fld "data"
| ==> 55 (shouldn't it give 76 ??)
|
| Is this a bug, limitation, or a bad assumption?
|
| thanks, Glen
|
More information about the use-livecode
mailing list