Check if the user has entered something in EditField
Check if the user has entered something in EditField
BY 16 Aug 2013Native Application Development
Hi,
How am i supposed to check if the user has entered any number in an EditField? For this purpose i have used the Tizen::Base::String GetText(void) const function. But the problem comes when the function returns some values like 3 or 6..etc which are very usual on the part of the user to enter and as such my checks are not working fine in those cases.
Can i use any other alternative function to work in this situation?
The following is the code that i have used if it is of some help:
int num;
Integer::Parse(pField[i][j]->GetText(), num);
if((pField[i][j]->IsKeypadEnabled()) && (num >= 1 && num <= 9))
Check if the user has entered something in EditField
Hi,
How am i supposed to check if the user has entered any number in an EditField? For this purpose i have used the
Tizen::Base::String GetText(void) const
function. But the problem comes when the function returns some values like 3 or 6..etc which are very usual on the part of the user to enter and as such my checks are not working fine in those cases.Can i use any other alternative function to work in this situation?
The following is the code that i have used if it is of some help:
int num;
Integer::Parse(pField[i][j]->GetText(), num);
if((pField[i][j]->IsKeypadEnabled()) && (num >= 1 && num <= 9))
{....//do somthing.....}
else {....//do something else...}
Thanks in advance.
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio
BY
30 Oct 2023
Tizen Studio