Kirbybase: Displaying a field value


#1

Hello,
This is likely to be another one of those embarrassing questions.

I have a table of tokens, one token one record, which I’d like to
process as strings, for example:

tgl_tokens.select.each do |t|
puts t.to_s
end

I expect, say:

Retraction
headline

But I get:

#<struct #Class:0x4dee4a8 recno=579, tgltoken=“Retraction”>
#<struct #Class:0x4dee4a8 recno=580, tgltoken=“headline”>

How do I get the expected results?

Thanks for the help.
basi


#2

I knew this was an embarrassing question. I got it:

puts t.tgltoken

basi


#3

I also tried simply:

puts t

but I got the same results.

basi