Another subtlety revealed!

One thing, Måns said it wasn't working for him at all. It appears to
me that if the number of array items doesn't match the format string
exactly, that the rest of the js doesn't run at all. That would
explain his problem, since clearly the format string didn't match his
array.

I could be wrong in this interpretation, since I couldn't find any
entry in the error console. But it seemed to work that way when I was
altering the number of fields.

-- Mark

On Feb 8, 2:55 pm, Eric Shulman <[email protected]> wrote:
> > var fmt='|%0|%1|%2|%3|%4|%5|%6|%7|%8|%9|%10|\n%11\n';
>
> You can use %0 through %9... to format more than 10 fields, you will
> need to format it in separate parts, and then contcatenate the parts,
> like this:
>
> var txt1='|%0|%1|%2|%3|%4|%5|%6|%7|%8|%9|'.format([...]);
> var txt2='%0|\n%1\n'.format([...]);
> var newtxt=txt1+txt2;
>
> enjoy,
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to