Results 1 to 3 of 3

Thread: Converting vb scritpt statement to vb.net

  1. #1

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Converting vb scritpt statement to vb.net

    In a vb script program, I have the following code...

    objCommand.Properties("Page Size") = 9999

    I have converted most of the vb code over, but this statement gives me a "Property Item is ReadOnly" error. How can I rewrite this line to work in vb.net?

    Thanks!
    Brian

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,383

    Re: Converting vb scritpt statement to vb.net

    What datatype is objCommand?

  3. #3

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: Converting vb scritpt statement to vb.net

    I have objCommand declared this way...

    Dim objCommand As New ADODB.Command

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