CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 convert this to CCS

Print topic Send  topic

Author Message
JD
Posted: 11/26/2002, 5:00 PM

How would I change this from old cc2 to ccs

$sSQLmax = "select MAX(vci) as vci from dsl";
$db->query($sSQLmax);
if($db->next_record())
{ $max = $db->f("vci");
$max++;
}
$fldvci= $max;

Assume all names are still the same
Alex Alexapolsky
Posted: 11/27/2002, 5:52 AM

Try

global $FormName;

$sSQLmax = "select MAX(vci) as vci from dsl";
$FormName->ds->query($sSQLmax);
if($FormName->ds->next_record())
{ $max = $FormName->ds->f("vci");
$max++;
}
$FormName->vci->SetValue($max);

   


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.