I want to use the value of the text field to validate the username and password for my GUI. I have tried this code:
If user.Text = "abc" and passwrd.Text = "abc" then
I want to use the value of the text field to validate the username and password for my GUI. I have tried this code:
If user.Text = "abc" and passwrd.Text = "abc" then
You access it the exact same as you would in Java:
my_text_field.getText
JRuby has some nice syntactic sugar to make interoperating with Java feel more Ruby-like, which you can also use:
# these are equivalent
my_text_field.get_text
my_text_field.text