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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error for String$ 2

Status
Not open for further replies.

Bresart

Programmer
Feb 14, 2007
314
ES
Hi, in a DB that registers a try version of DBPix ( the code

strClassName = String$(MAXLEN, 0): lngClassLen = MAXLEN


gives the error

"Compilation error: the project or the library can't be found."

with String$ highlighted.


It seems like a library must be included. Which would be the code to be added?

Thanks.
 
Use the .Open method.

It might be worth writing the code with the references on and then so you can use the Intellisense (for paramters etc.) and then replace the declarations as Objects again, un-comment out the CretaeObject line and remove the reference.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Just also clear up an earlier question (not from the OP), CStr() converts values to strings, whereas String$() returns a repeating character string of the length specified in the first arguement.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top