From: Li Chen Date: 2008-09-28T22:10:37+09:00 Subject: Re: How to get a string using InputDialog with FxRuby > > Here is a full working example: > require 'rubygems' > require 'fox16' > include Fox > > if __FILE__ == $0 > FXApp.new do |app| > app.create > result = FXInputDialog.getString("Enter some text...",app,"New > InputDialog","Please type some text:") > if result > puts "User entered: " + result > else > puts "User cancled!" > end > end > end Now the code is working. I have one more question. I copy one method from FxRuby's rdoc as follows: getString(initial, app, caption, label, ic=nil) Prompt for a string, in a free-floating window.. What does ic=nil mean? Thanks, Li -- Posted via http://www.ruby-forum.com/.