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);
|
|
|
 |
|