Entering Variables in Ruby

Hi,

I'm starting to look at Ruby but wonder, is there a way to enter variables
into a Ruby script through forms with text boxes, list boxes, check boxes
etc like with an HTML form or a VB form?

Thanks in anticipation.

Peter

Peter,

You'll need to be more specific -- there are different libraries for
extracting data from web forms, GUIs, files, etc. However, most don't
do straight variable replacement, as user input is usually validated
before being used in programs.

What exactly are you trying to do?

Lennon

···

On Fri, 23 Jul 2004 06:21:59 +0900, designer <designer@dolphin-ds.com> wrote:

Hi,

I'm starting to look at Ruby but wonder, is there a way to enter variables
into a Ruby script through forms with text boxes, list boxes, check boxes
etc like with an HTML form or a VB form?

Thanks in anticipation.

Peter

designer wrote:

I'm starting to look at Ruby but wonder, is there a way to enter variables
into a Ruby script through forms with text boxes, list boxes, check boxes
etc like with an HTML form or a VB form?

For HTML forms see:

http://www.rubycentral.com/book/web.html

For (VB like) GUI forms:

http://www.fxruby.org/doc/book.html

-- Erik

Thanks very much for the pointers.
I don't know how much I can make use of it, but I have a 3D drawing package
that makes use Ruby as the scripting language. For another program I use I
was able to use a VB form to input variables into its macro language to
automate some drawing tasks. I wondered if something similar was available
for Ruby.

"Erik Terpstra" <erik@terpnet.nl> wrote in message
news:4100313b$0$36169$e4fe514c@news.xs4all.nl...

designer wrote:
> I'm starting to look at Ruby but wonder, is there a way to enter

variables

> into a Ruby script through forms with text boxes, list boxes, check

boxes

···

> etc like with an HTML form or a VB form?

For HTML forms see:

http://www.rubycentral.com/book/web.html

For (VB like) GUI forms:

http://www.fxruby.org/doc/book.html

-- Erik