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. VB6 CallByName

VB6 CallByName

Scheduled Pinned Locked Moved Visual Basic
phpdatabasecomhelp
2 Posts 2 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.
  • D Offline
    D Offline
    Davy Mitchell
    wrote on last edited by
    #1

    Hi All, VB6 CallByName only seems to return a generic Error if one is thrown (ERR.DESCRIPTION : Invalid procedure call or argument). Is there someway of getting my specific custom error messages? Thanks, Davy
    My Personal Blog - Homepage.
    Scottish News - Angus Blog, Perth Blog and Dundee Blog

    D 1 Reply Last reply
    0
    • D Davy Mitchell

      Hi All, VB6 CallByName only seems to return a generic Error if one is thrown (ERR.DESCRIPTION : Invalid procedure call or argument). Is there someway of getting my specific custom error messages? Thanks, Davy
      My Personal Blog - Homepage.
      Scottish News - Angus Blog, Perth Blog and Dundee Blog

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      How are you generating your custom errors? It's been a long time since I did VB6 so I may be wrong on this. But to generate a custom error, I think(!), you had to something like this:

      Err.Raise vbObjectError+(your error number), (Source as String - optional), (Description as String - optional)

      RageInTheMachine9532

      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