Results 1 to 4 of 4

Thread: sending a boolean value to a db [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    sending a boolean value to a db [RESOLVED]

    when you have a boolean variable, vb sees that as 'true' or 'false', not '0' or '1'. when I send the value to a db field of type 'bit', the process crashes cause it actually receives a string of 'false' (cause I am trying to set the variable to '0' and it gets defaulted to 'false')

    I have two options,:
    1) use type byte for the variable and use 0's or 1's
    2) use type integer and use 0's or 1's and use more resources for the variable size.

    I'm trying to use the smallest size possible. In addition to these options, what else can be done?
    Last edited by Andy; Apr 19th, 2004 at 08:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width