Hi I have a string inside a FXList that is seperated into columns by spaces. I will have a need to put this data into editable controls when ever the user clicks on a line. I thought of using the ruby split('' '') command. The way i was going to do this was to have it setup like this... control.text, control.text... = ALine.split('' '') but i got a error referring to split as being private! Is there a better way of doing this? I have googled but for the present i have not found anything meaningful. anyone able to help? dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20090825/8ea37e3d/attachment.html>
David MacMahon
2009-Aug-25 15:54 UTC
[fxruby-users] Best way to brake up a string within FXruby?
On Aug 25, 2009, at 3:56 , dave L wrote:> The way i was going to do this was to have it setup like this... > > control.text, control.text... = ALine.split('' '') > > but i got a error referring to split as being private!Are you sure ALine is a String? Dave
Nataraj S Narayan & David MacMahon, Thanks for your quick reply. David, Yes Aline is a string as it is actually obtained from fxlist and has data like Job No, Date, Time (PC system obtained) plus other entries but i am wanting to ADD to the list. Nataraj, Didn''t think of doing this! as i''d just thought these would be in as a system function of FXruby. Lession learnt :) many thanks to you both. Dave --- On Wed, 26/8/09, David MacMahon <<a *** snipped ***