I'm felling really noobyish but I'm stumped.
And yes I know extracts of pieces of code are more difficult but posting the whole program is just not possible:
I've been migrating to a more class oriented approach, and with a few stumbles, it has been going quite well. This was just another global table being converted, like others before it, but this one is balking.
I'm getting a data type mismatch on a method call and I'm stumped.
Here's some extracted stuff:
I've done the almost identical conversion of another UDT array without problem. This should really have been a "change all TblA to TblB" type migration but it's not. To me, everything says the data type is LCtlCmd, what other definition is the compiler seeing?
George
And yes I know extracts of pieces of code are more difficult but posting the whole program is just not possible:
I've been migrating to a more class oriented approach, and with a few stumbles, it has been going quite well. This was just another global table being converted, like others before it, but this one is balking.
I'm getting a data type mismatch on a method call and I'm stumped.
Here's some extracted stuff:
Code:
In the equates etc. .INC file TYPE LCtlCmd ' Final Line Command entry (After validation) SrcCmd AS STRING * 4 ' Source Command (C, M, CC, etc.) SrcFrom AS LONG ' Source Start Line number SrcTo AS LONG ' Source End Line number SrcRepeat AS LONG ' Source Repeat DstCmd AS STRING * 4 ' Dest Command (A, B, OO, etc.) DstFrom AS LONG ' Dest Start Line number DstTo AS LONG ' Dest Eend Line number DstRepeat AS LONG ' Dest Repeat END TYPE In the Class definition .INC file INSTANCE LTblB() AS LCtlCmd ' Complete line command list in the constructor method of the class DIM LTblB(500) AS INSTANCE LCtlCmd ' Complete line command list In the INTERFACE section of the CLASS METHOD LTblBGet (BYVAL ix AS LONG) AS LCtlCmd: METHOD = LTblB(ix): END METHOD in a SUB in the main module (TabP is the created CLASS, works for all kinds of other METHOD's & PROPERTIES) LOCAL w AS LctlCmd w = TabP.LTblBGet(1) ' Copy 1st entry to work data Results in: Error 482 in D:\Public\DOCUME~1\SPFLite\SPFLIte4.BAS(3608:011): Data type mismatch Line 3608: w = TabP.LTblBGet(1)
George
Comment