Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Automation type not supported by VB - Run Error 458

I am receiving a run time error458 "Variable uses an Automation type not supported in VB"


Backround:

I am convverting an DOS Basic program to VB and trying to use as much of the code that is compatible. I am using random access files and receive the error in a line such as :

get gfileNum, 2,gScrn


The instant watch shows the correct file number and record number. The gScrn appears as " ". I suspect the problem is in the third variable (gscrn).



I have the basic starting information(type, record length, open,etc) for all the files in one bas program and call them as needed in the forms.


The problem does not occur when the record number is 1 but does with any other record number.


The problem does not exist in all forms; just one where I have call the file info, open the file, get the record, put the record, close the file, call another, etc. It happens on the first get statement in the second file.


Any suggestions?????????


Comments

  • Justin BibJustin Bib USAMember Posts: 0

    ________ || http://forcoder.org || free video tutorials and ebooks about < Go, C++, R, Perl, Delphi, JavaScript, MATLAB, PL/SQL, Objective-C, Visual Basic .NET, Scratch, Visual Basic, C, Python, Java, C#, Swift, Ruby, Assembly, PHP Alice, Dart, Ada, Erlang, Kotlin, Hack, F#, Apex, Crystal, Scala, D, Prolog, ML, COBOL, Clojure, Transact-SQL, Logo, SAS, Julia, Scheme, VBScript, ABAP, Rust, LabVIEW, Lua, Fortran, Lisp, Bash, FoxPro, Awk /> ____

Sign In or Register to comment.