Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 cannot recognize String, Right, Chr... 1

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
Got new PC, and my VB6 projects lost some basic references. Can anybody give a hint, what basic library(ies) I lost?

Thank you!
 
I have a similar problem in my application. I think there is probably a referenced component that is walking all over those functions.

To fix the problem, I had to put VBA. in front of everything.

Ex:

Code:
  MsgBox [!]VBA.[/!]Right("Blah", 3)

Without the VBA. part, I get an error message "Expected Array"

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
gmmastros,

Thank you, this indeed works! But why VBA? This is VB6 project.

vladk
 
All VB6 projects reference several other projects. You can't change this. If you start a new project and click Project -> References you will see what I mean. The first project listed is "Visual Basic For Applications". The String, right, and many other functions actually exist in those other references.



-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
OK...
Why it stopped working by default...

 
gmmastros,

I got to go. Thank you! I gave you a star.

Thank you!

vladk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top