0

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
Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
Prakhar
  • 92
  • 12

1 Answers1

0

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
Community
  • 1
  • 1
Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366