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

Type 'VB6.FixedStringLenth' is not defined

Status
Not open for further replies.

andyburrow

Programmer
Joined
Apr 15, 2005
Messages
14
Location
GB
Any ideas on how I can define this?

The program seems to compile, except for this bug. grrr.

Has anyone ever had this as well?

'Dim lpszName As New VB6.FixedStringLength(100)'

That's the line of code..
 
Dim lpszName As String = Space(100)


Sweep
...if it works dont mess with it
 
There is a work around:

Dim charString(99) As Char
TextBox1.Text = "This is the original text"
charString = TextBox1.Text.ToCharArray
MessageBox.Show(charString)
charString = "This is a test".ToCharArray
TextBox1.Text = charString

Hope this helps
 
The MSDN help shows how to use it:
Code:
Imports Microsoft.VisualBasic

<VBFixedString(15)> Public FirstName As String
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top