Forum: FXRuby FXTable - iterating through headers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9bc6ed619a45baf23da0165e10697631?d=identicon&s=25 Patrice Mannes (ymeth)
on 2009-08-23 17:57
Hi,

my question concerns FXHeaders in an FXTable
As the title says I'm trying to iterate through each header in order to
get it's text. However, im getting some very strange errors (that is:
strange to me).

Here is the code:

def generate_view(p)
  @tabelle.columnHeader.each do |header|
  x = header.position
  foo = header.getItemText(x)
  end
end

When the method gets called, the compiler says:  "undefined method
`position' for :Fox::FXHeaderItem (NoMethodError)"

Now, I'm relatively new to programming, so this might be a completely
dumb question, but where is my mistake?

Thanks
Patrice
This topic is locked and can not be replied to.