Erro na DLL que criei...e agora ???
21/02/2003
0
library Util;
uses
SysUtils,
Classes;
{$R *.res}
Function Datar(Texto : string):string; export;
Var
i:integer;
Texto_f, comp, temp : string;
Begin
comp := DateToStr(Date);
If (Texto <> ´´) then
Begin
For i := 1 to Length(Texto) do //retira as barras da string
If (Texto[i] <> ´/´) then
Texto_f := Texto_f + Texto[i];
For i := 1 to Length(Texto_f) do
Begin
If (i = 3) or (i = 5) then
temp := temp + ´/´;
Temp := Temp + Texto_f[i];
End;
If Length(Temp) < 11 then
For i:= (length(Temp) + 1) to 11 do
Temp := Temp + comp[i];
End;
Result := Temp;
end;
exports
Datar;
begin
end.
:shock:
Anderson.oberdan
Posts
21/02/2003
Fabioastra
Pchar(parametro) e na função declare como pchar tb provavelmente funcionará
Falow
21/02/2003
Anderson.oberdan
Eu mudei todas as declarações de String para Pchar.
21/02/2003
Anderson.oberdan
Abraços.
21/02/2003
Alphablend
Begin
If (i = 3) or (i = 5) then <<== o erro esta aki
temp := temp + ´/´;
Temp := Temp + Texto_f[i]; <<== NAUM DEVERIA TER UM ELSE AKI
End;
========================
FICARIA ASSIM !!!!!!
For i := 1 to Length(Texto_f) do
Begin
If (i = 3) or (i = 5) then
temp := temp + ´/´
ELSE
Temp := Temp + Texto_f[i];
End;
FALOU !!!!!!!
Clique aqui para fazer login e interagir na Comunidade :)