I'm porting a program from windows to dos (yes, I know, odd, but true) I've got most of it compiling, after writing a couple functions to replace missing dos ones, to keep source code changes to a minimum.
However, my current problem is that I can't get array insert to work properly.
I'm getting an error 420, Relational operator expected.
I have an array of records, and I'm trying to insert a record into the array.
The line of code in question currently reads as:
Temp3 is a record of a user defined type.
The original lines of code from the windows code was:
On windows, the values are inserted directly into the array automatically.
On dos, apparently, I need to setup the record first, then insert it as a complete set.
I'm getting errors which seem to indicate I need to define the type of item I'm inserting.
Normally, I'd just add a $ % #, or whatever is necessary to identify the datatype being inserted into the array. However, in this case, since it's a record, there isn't really any type identifier (that I know of anyway), so what can I do here to get this record inserted into the array?
Any suggestions/assistance would be much appreciated.
However, my current problem is that I can't get array insert to work properly.
I'm getting an error 420, Relational operator expected.
I have an array of records, and I'm trying to insert a record into the array.
The line of code in question currently reads as:
Code:
array insert varlist(varindex),temp3
Code:
type var1 vname as string*40 vvalue as string*40 end type
Code:
varlist(varindex).vname = temp1 varlist(varindex).vvalue = temp2
On dos, apparently, I need to setup the record first, then insert it as a complete set.
I'm getting errors which seem to indicate I need to define the type of item I'm inserting.
Normally, I'd just add a $ % #, or whatever is necessary to identify the datatype being inserted into the array. However, in this case, since it's a record, there isn't really any type identifier (that I know of anyway), so what can I do here to get this record inserted into the array?
Any suggestions/assistance would be much appreciated.
Comment