The thing to remember is that "puts" does an implicit "to_s" (or "inspect", i can't remember exactly) on its argument.
Bret Sameh Abdelhamid wrote: > Very nice. Thanks Wes. > I couldnt find this anywhere! > Cheers. > > > On Wed, Nov 26, 2008 at 3:38 PM, wesley chen <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > You have to: > workspace.text_field(:id,"NUM_prcsdProductId").set(*pproduct_no.to_s*) > Because the pproduct you created is just a matchdata, not a > string, you have to change the format manual. > > Thanks. > Wesley Chen. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---