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.FixedLengthString(100)

Status
Not open for further replies.

andyburrow

Programmer
Joined
Apr 15, 2005
Messages
14
Location
GB
Hi All,

I've pretty much finished a Webcam App that i've coded, but there's a build error that I need to solve.

It says 'Type VB6.FixedLengthString' not defined.

Apparently, this is something to do with a Library that needs to be referenced??

Thanks for any help
Andy
 
You cannot specify the length of a string in VB.NET like you used to be able to do in VB6. Read this for more info:


--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
I've just read that article and it say's:

"In Visual Basic .NET, you cannot declare a string to have a fixed length unless you use the VBFixedStringAttribute Class attribute in the declaration."

So from that, I read that it is possible by using the above Call attribute in the declaration?
 
you could use a Character Array to have a set length.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top