LoginSignup
0
0

More than 5 years have passed since last update.

C++ Builder > property > float型のpropertyの場合、String型の引数を持つsetterは使えないようだ

Last updated at Posted at 2017-07-28
動作環境
C++ Builder XE4

以下を考えていた。

  • 入力: L"1e-7" : String
  • 出力: L"1e-7" : String
  • 保持変数: float

float型のpropertyに対してはString型の引数を持つsetterは使えなさそう。

下記にて質問をしていて、回答いただいた。
https://stackoverflow.com/questions/45341664/c-builder-property-with-setterstring-causes-error-e2034-cannot-convert

全部をString型にする場合、ToDouble()などを使うことになり、それは自分が考えていたこととは合わない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0