首页 > 解决方案 > migrate ftFloat type Delphi RIO

问题描述

I have an application in delphi 5 and I'm trying to migrate it to delphi RIO. I have problem whaen getting float value,

in getFieldData i have this code :

if Buffer <> nil Then
begin
  case Field.DataType of
    ftFloat :
    begin
      //ShowMessage((FieldText));
      PInt64(Buffer)^:= StrToint(FieldText);
    end;
end;

in my exemple FieldText = '3', and NUMSEQ is my float field

When I try to get Dataset1.FieldByName('NUMSEQ').AsString , I have a weired results like this : 3,50970580934475E-33

Any one can help me pls ... and thanks in advance.. (sorry for my bed english)

标签: delphidatasetfielddelphi-10.3-rio

解决方案


推荐阅读