FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


Visual Prolog : Edit Control : Check if string contains numbers

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
Amod Gokhale



India
Joined: 06 Mar 2017
Posts: 8

PostPosted: 8 Mar 2017 8:34    Post subject: Re: Reply with quote

Gukalov wrote:
Simplier to delete spaces before checking:
if string:hasAlpha(string::replaceAll(Control:getText(), " ", "")) then

But to check if entering name is correct you need something more sirious than just letters&spaces)))
"A m o d Go kh ale" ?!)))

Perfect!!!!!. I used this solution. Don't know how to mark this as accepted answer here. If you are on stack ( kindly update... i have posted tr as well and will mark it as accepted )
Back to top
View user's profile Send private message
Amod Gokhale



India
Joined: 06 Mar 2017
Posts: 8

PostPosted: 8 Mar 2017 8:36    Post subject: Reply with quote

Hi Harrison,

Thanks for your detail reply, it worked and prevents numbers.

For now went with solution provided by Gukalov as it fits with current system requirement.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum