problem with Left$-Function in VB6
-
hi, I did VB6 a very long time ago...nearly forgot about it, but now I have to do a project in vb. My problem is I get the following error when using the Left$-Function: Type-declaration character doesn't match declared data type. Here is my code: Public Sub Main() Dim s As String s = Left$("test", 2) End Sub What can it be ? As far as I remember it should work like this. It is also explained in the MSDN like this. Thanks for help Azrah
-
hi, I did VB6 a very long time ago...nearly forgot about it, but now I have to do a project in vb. My problem is I get the following error when using the Left$-Function: Type-declaration character doesn't match declared data type. Here is my code: Public Sub Main() Dim s As String s = Left$("test", 2) End Sub What can it be ? As far as I remember it should work like this. It is also explained in the MSDN like this. Thanks for help Azrah