Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Using vbNullString with controls and command bars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using vbNullString with controls and command bars

 Post Reply Post Reply
Author
Message
DMoreland View Drop Down
Newbie
Newbie


Joined: 05 November 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DMoreland Quote  Post ReplyReply Direct Link To This Post Topic: Using vbNullString with controls and command bars
    Posted: 13 November 2012 at 7:00am
I have found an issue when using the command bars and combo boxes in the latest version of the code jock controls. 

If you add an item to a combo box with a value of vbnullstring you get the following error message 

Automation Error, The object invoked has disconnected from its clients error

If you use "" instead of vbNullString then the error doesn't present its self. 

This also happens when you Add an item to a command bar with vbNullString as its name. and the same fix works where you can replace vbNullString with "". 

I have attached a code example illustrating this issue. The code needs to be compiled in order for the error to be displayed and it also has to be ran on a computer that hasn't had codejock installed. Running the example from the vb6 IDE will not display this behaviour and running it on a development machine with CodeJock installed on will not display this behaviour either. 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.