Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Binding objects - Error

Binding objects - Error

Scheduled Pinned Locked Moved Visual Basic
wpfwcfhelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ibok23
    wrote on last edited by
    #1

    I am trying to bind object together from access to visual. I am in the process of writing the code. I keep on getting the same error and don't know why. I have this so far.

    dim partInformation as Binding
    partInformation = new binding ("Text", dsParts1,_
    "tblParts.fldpartNumber")

    Under part information on the 2nd line the error that is coming up is - Declaration expected. Under "tblParts.fldpartNumber" the error is Syntax error. What am I doing wrong? :( Thank you, ibok23

    I 1 Reply Last reply
    0
    • I ibok23

      I am trying to bind object together from access to visual. I am in the process of writing the code. I keep on getting the same error and don't know why. I have this so far.

      dim partInformation as Binding
      partInformation = new binding ("Text", dsParts1,_
      "tblParts.fldpartNumber")

      Under part information on the 2nd line the error that is coming up is - Declaration expected. Under "tblParts.fldpartNumber" the error is Syntax error. What am I doing wrong? :( Thank you, ibok23

      I Offline
      I Offline
      ibok23
      wrote on last edited by
      #2

      Could somebody tell me what I am doing wrong? This is what I have...

      Dim partInformation As Binding
      partInformation = New Binding ("Text", dsParts, "tblParts.fldpartNumber")
      txtpartNumber.dataBinding.add(partInformation)
      partInformation = New Binding ("Text", dsParts, "tblParts.flddescription")
      txtDescription.dataBinding.add(partInformation)
      partInformation = new binding ("Text", tblParts.fldquanityOnHand")
      txtquanityOnHand.dataBinding.add(partInformation)
      partInformation = new Binding ("Text", tblParts.fldcost")
      txtcost.dataBinding.add(partInformation)
      partInformation = new binding ("Text", tblParts.fldsalesPrice")
      txtsalesPrice.dataBinding.add(partInformation)

      I am getting an error on all of the partInformation except for the dim. It says declaration expected. I am also getting an error on all the txt before the dataBinding saying declaration expected. :( Thank you, ibok23

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups