WODA: FAQs

 Formatting Data

I would like to show the first 4 lines only of a TEXTAREA field in the formatRowDefault field.?
Use "split()" to create an array with the content of your textarea.
Then display only the first 4 elements of the array with a FOR loop.

Something like

my @lyrics = split /\n/, $rec{'lyrics'};
my $show_lyrics = "";
for (my $i = 0; $i < 4; $i++) { $show_lyrics .= $lyrics[$i]; }

Now you can use the variable $show_lyrics in your formatRowDefault.

Jean-Paul
modify the informationdelete entire recordexplain the meaning of the fieldsbrowse recordsAdd a new questionHome page of this databaselogin Valid HTML 4.01 Transitional Valid CSS! Powered by WODA 4.6x trunk