self.dcPlaying.DataType = System::Boolean
On Thu, Feb 12, 2009 at 8:42 PM, Brandon Jones <lists at ruby-forum.com>
wrote:
> I''m working with a windows form application using IronRuby.
I''m hitting
> a snag when using DataSets. I have a DataColumn that I want to be a
> boolean. But I can''t figure out how to set the DataType properly.
> Numerics are easy enough:
>
> self.dcScore.DataType = Fixnum.to_clr_type
> self.dcTime.DataType = Float.to_clr_type
> self.dcPlaying.DataType = ???
>
> TrueClass and FalseClass have no CLR type (that I can see). Must I hack
> in integer values in place of true/false?
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20090212/90c118ca/attachment.html>