Jump to content


Photo

AsFloat bug on text columb


  • Please log in to reply
5 replies to this topic

#1 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 25 February 2019 - 06:54 PM

On text columb if I use .AsFloat I get a empty string. The float number is not convert to string.

 

Please fix it!



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 26 February 2019 - 08:41 PM

Hello,

Can you give me more details, I'm not sure if I understand.

AsFloat return number, not a string.

This is what is currently there:

Result := StrToFloatDef(FValue, 0);
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 27 February 2019 - 01:18 AM

On TNxTextColumn6 this works:

myGrid.Cell[0, 0].AsString := FloatToStr(myFloat);

 

but this NOT works (the cell is empty):

myGrid.Cell[0, 0].AsFloat := myFloat;



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 27 February 2019 - 02:48 AM

I will fix it. I understand now.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 27 February 2019 - 05:21 PM

I will fix it. I understand now.

Do you have a ETA?

Because I have replace all my NextGrid 5 with NextGrid 6 on my project and now I cannot continue my work.



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 27 February 2019 - 05:46 PM

Hello,

It should be ready for March update.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users