-
I've just installed VB6 SP3 - this piece of code worked fine in VB5 but now I get:
Run-time error 458
Variable uses an Automation type not supported in Visual Basic
on the first Get command.
Any ideas?
Simon
filePath = "motd" 'use this to test at home
If Len(Dir(filePath)) <> 0 Then
Open filePath For Binary As #1
Get #1, , msgschoolname
Get #1, , msgschooldesc
Get #1, , countdowntext
Close #1
-
Are you running the program on a pc that has VB5 on it?
-
<?>
I dont get an error....VB6 SP3
-
If you have anything early bound in your program and you are running the program that you compiled in VB6 on a VB5 pc you will have version problems. It has happened to me.
-
Nope - it's installed on a brand new machine.
-
<?>
If it's nothing major you can zip and email it to me and I'll run it on this machine and see what happens.
The VB5 version that is....I'll run it on VB6
Wayne