CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Splitting field

Print topic Send  topic

Author Message
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
View profile  Send private message
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(" ", ... ) ???

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.