ab1000
|
| Posted: 12/16/2004, 3:36 AM |
|
I want to split a text field (within it binair code) in multi rows and 2 colums.
I have so far this code in before_show_rows:
global $laps;
$split = explode(" ",$laps->tijd->GetValue());
for ($n = 0; $n < count($split); $n++) {
$test = explode("\r\n",chunk_split($split[$n],1));
$testa= number_format(((ord($test[0])-33) + (128*(ord($test[1])-33)) + (128*128*(ord($test[2])-33)))/1000, 3, '.', '');
print "Lap:".($n)." Rondetijd:".$testa." ";
$laps->lap->SetValue($n);
$laps->tijd->SetValue($testa);
}
The print function is OK but in the row only the last (new)field is showed 
Any idea's??
|
|
|
 |
fsibaja
Posts: 10
|
| Posted: 12/17/2004, 6:50 AM |
|
Is not clear enoght for me. Just guessing, it shouldn't be first the split("\n" .. ) , and then the split(" ", ... ) ???
_________________
Fernando Sibaja |
 |
 |
ab1000
|
| Posted: 12/17/2004, 12:40 PM |
|
What do yoe mean?
The first string is ]a" qj# p=#
That must be:
]a"
qj#
p=#
(in 3 rows..)
Quote fsibaja:
Is not clear enoght for me. Just guessing, it shouldn't be first the split("\n" .. ) , and then the split(" ", ... ) ???
|
|
|
 |
|