delphi - 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)
解决方案
推荐阅读
- python - 未从 Python 执行的 MS SQL 存储过程
- node.js - 为什么我的 AJAX 请求没有通过?
- java - 为什么 MicroMeter Timer 返回零?
- excel - 当我想使用应用程序属性时,我在 Excel 上遇到问题
- .htaccess - 为什么这个 htaccess RewriteRule 不“坚持”?
- ios - TestFlight 应用内购买返回非常旧的收据,其中 productID 不再存在
- javascript - 沟通php和js
- excel - 将特定术语从 Microsoft Word 提取到 Excel
- php - 将错误消息放入 URL [PHP] 的目的是什么?
- recursion - int list 的累计和