Hola danielmj.
La questión es: ¿ De que tipo es
tempPath ?
Si
tempPath es de tipo
string la función
Length devolverá la longitud esperada, como por ejemplo en:
Código Delphi
[-]
var
tempPath: string;
begin
tempPath := 'C:\';
ShowMessage(IntToStr(tempPath)); ...
Pero intuyo que
tempPath está declarada como
array[0..260] of char... Y en ese caso tendrías que hacer:
Código Delphi
[-]
var
tempPath: array [0..260] of char;
str : string;
begin
tempPath := 'C:\';
str := tempPath;
ShowMessage(Format('Largo de tempPath: %d %sLargo de str: %d',[Length(tempPath), #10, Length(str)]))
...
Saludos
