Mr.Mostafa Posted June 10, 2018 Share Posted June 10, 2018 سلام عليكم ابي تحقق ان الكلام الي بالايديت بوكس ارقام فقط Link to comment
#Major . Posted June 10, 2018 Share Posted June 10, 2018 (edited) if ( guiGetText(EditBox) >= 0 ) then Edited June 10, 2018 by *RayaN-Alharbi. Link to comment
Rockyz Posted June 10, 2018 Share Posted June 10, 2018 (edited) if edit:gsub('[0-9]', '') == '' then --edit الأيديت Edited June 10, 2018 by #,+( _xiRoc[K]; > Link to comment
Rockyz Posted June 10, 2018 Share Posted June 10, 2018 Just now, Mr.Mostafa said: شكرا لكم العفو .. 10 minutes ago, #,+( _xiRoc[K]; > said: if edit:gsub('[0-9]', '') == '' then --edit الأيديت هذا مثال على استخدام هذي الطريقة local theText = 's1' if theText:gsub('[0-9]', '') == '' then print('NUMBERS'); else print('NOT NUMBERS'); end ولا تقدر ببساطة تسوي local theText = 's1' if tonumber(theText) then print('NUMBERS'); else print('NOT NUMBERS'); end k=theText:gsub('[0-9]', '') print(k) Link to comment
N3xT Posted June 11, 2018 Share Posted June 11, 2018 if ( type(text) == "number" ) then Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now