Ver Mensaje Individual
  #1  
Antiguo 04-07-2006
fartycl fartycl is offline
Miembro
 
Registrado: jul 2003
Posts: 21
Reputación: 0
fartycl Va por buen camino
Problemas para crear una funcion

Lo que pasa es que al declarar la funcion me tira un error

Código Delphi [-]
   Function Ptotal(cuenta:Integer):String;

esta es la funcion

Código Delphi [-]
Function Ptotal(cuenta:Integer):String;
var a:integer;
    cTotal:String;
begin
cTotal:='0';
If Fvta.SqlTemp.RecordCount <> 0 then
Fvta.SqlTemp.First;
For a:=1 to Fvta.SqlTemp.RecordCount do
begin
   Ctotal:= IntToStr(StrToInt(Ctotal)+StrToInt(Fvta.sqltemp.FieldByName('importe').AsString));
  Fvta.SqlTemp.Next;
end;
Result :=ctotal;
end;

y este es el error: Unsatisfied forward or esternal declaration: 'TFVTA.Ptotal'

Fvta es el nombre de mi formulario

bien si me pueden ayudar seria grandioso

Última edición por dec fecha: 04-07-2006 a las 19:03:55.
Responder Con Cita