NaWin55
Mechanical
- Mar 21, 2020
- 98
Hello all
i am new to CAA
i am trying to get value from CATDlgEditor
i used following code
double dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetValue();
but i cant get the entered value in Editor, getting 0
i used GetText() method but i tried to convert in to double using ConvertToNUM in CATUnicodestring got the value for int variable but for double i am not getting correct value
here is the code
CATUnicodeString dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetText();
int dretriedValX = 0;
CATUnicodeString xParamVal(dNumOfPoints);
xParamVal.ConvertToNum(&dretriedValX,"%d");
i am new to CAA
i am trying to get value from CATDlgEditor
i used following code
double dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetValue();
but i cant get the entered value in Editor, getting 0
i used GetText() method but i tried to convert in to double using ConvertToNUM in CATUnicodestring got the value for int variable but for double i am not getting correct value
here is the code
CATUnicodeString dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetText();
int dretriedValX = 0;
CATUnicodeString xParamVal(dNumOfPoints);
xParamVal.ConvertToNum(&dretriedValX,"%d");