Salut,
je veux bien changer la function StrToFloat comme suis:
Borland code:
Mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 function StrToFloat(const S: string): Extended; begin if not TextToFloat(PChar(S), Result, fvExtended) then ConvertErrorFmt(@SInvalidFloat, [S]); end;
jai changer la ligne dans SysUtils mais ca na pas marcher !!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 function StrToFloat(const S: string): Extended; begin s:= AnsiReplaceStr(s, '.', '') ; if not TextToFloat(PChar(S), Result, fvExtended) then ConvertErrorFmt(@SInvalidFloat, [S]); end;
si quelqun peut me donner un coup de main
Merci
Partager