Home » Community » Newbie corner » Sigh, SetData / GetData...
Re: Sigh, SetData / GetData... [message #50685 is a reply to message #50684] |
Wed, 05 December 2018 06:28  |
|
Hi Peter,
ptkacz wrote on Wed, 05 December 2018 04:32The following are defined:
docEdit.SetData(editDouble.GetData());
The last line of code above, causes the application to CRASH!
That is to be expected Get/SetData() works with Value, which can hold several datatypes but it doesn't perform any implicit conversions. To get the value from editDouble as string, you need to use ToString() or operator~(): docEdit.SetData(editDouble.GetData().ToString());
// or
docEdit.SetData(~editDouble.GetData());
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Mon May 12 03:42:49 CEST 2025
Total time taken to generate the page: 0.02392 seconds
|