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

VB6 Code to VB.NET

Status
Not open for further replies.

LALLORA

Programmer
Aug 6, 2003
22
IT
Hi,
I'm not expert in VB.NET programming and so I'm facing this problem.

This is the code, coming from VB6, which highlights an error:

Public const posblk_len as short = 128
Private posblock as new VB6.Fixedlenghstring(Posblk_len)

the definition of POSBLOCK returns a 'type not defined' and an 'unable to find the MICROSOFT.VISUALBASIC.COMPATIBILITY component'.

Which is the correct VB.NET definition for the variable POSBLOCK ?

Many thanks for your help.


Marco (Italy)
marco.dicesare@elmec.it
 
Hi,
You can either use a string (not fixed length) or a char array.

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Yes, this thread is duplicated. Sorry.

Thanks for the reply.. I'll try.



Marco (Italy)
marco.dicesare@elmec.it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top