I've been trying to use the Left function to return a single character from the start of a combo-box text bit, but it keeps coming up with an error saying "Unknown class module" or something similar. The syntax i'm using is: Left(string, n)
My code looks like this:
If Left(combo.text, 1) = 0 Then
Effect = 0
Else
Effect = 1
End If
The error highlights the word "Left" in the above code. I've used exactly this code in VB6 with no trouble, so what's the difference? I'd be grateful for any help.
Thanks for your time,
Rob.
My code looks like this:
If Left(combo.text, 1) = 0 Then
Effect = 0
Else
Effect = 1
End If
The error highlights the word "Left" in the above code. I've used exactly this code in VB6 with no trouble, so what's the difference? I'd be grateful for any help.
Thanks for your time,
Rob.