CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Location
    USA
    Posts
    161

    GetChunk please HELP

    hi, i m trying to read some data (supposed to be 10 integer) from my database declare binary (sqlserver) and i try to use getchunk like :
    dim a(10) as byte
    a=rs("popol").getchunk(10)
    When i try to get my activex the error "operation not allowed in the context" apprears, why?
    and i can t put it in a table...
    can u help me??
    How getting my info in a string or in integer??
    thx

    ---------------------------------------------
    Sure i got it... what s a form again?

  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: GetChunk please HELP

    According to MSDN HELP, GetChunk returns a Variant not a Byte. So try changing your Variable type.

    John G

  3. #3
    Join Date
    Apr 2001
    Location
    USA
    Posts
    161

    GetChunk please HELP

    thx for the help,
    but i change this a lot of time ..trying table, or not...but it never works..
    i m totaly lost
    i really needs help on this
    thx a lot

    ---------------------------------------------
    Sure i got it... what s a form again?

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

Featured