Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 04-07-2006
fartycl fartycl is offline
Miembro
 
Registrado: jul 2003
Posts: 21
Poder: 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
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problemas para crear botones jcDelphi Varios 3 08-06-2006 10:00:57
Problemas c/función para enviar mails con Outlook Express Walterdf Internet 0 04-10-2005 21:00:15
Crear query dentro de unit y funcion? alehillebrand OOP 3 19-07-2005 00:56:59
Problemas con funcion bbjb Varios 10 27-09-2004 18:08:19
problemas para crear archivo texto Manuel Firebird e Interbase 3 12-05-2003 21:08:08


La franja horaria es GMT +2. Ahora son las 16:58:58.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi