TH> foo$ = rec.CName(x??)
TH> I get compile error 421 (String operand expected)
In user-defined types, the parenthesis comes after the name of the whole
variable, and before the name of the element-- rec(x??).CName. It makes
sense, I guess, sort of.
This is another example of how error messages aren't always too
informative. It helps to think like a compiler. When it looks at what
you had, its thinking is something like this:
"Okay, I understand the 'foo$ =' part. 'rec.CName' is the name of a
variable, but I haven't seen it before. The default variable type is
integer, so I'll automatically declare it as an integer. Oops, the user
is trying to make the string 'foo$' equal to an integer. I'll give him
an error 421 to tell him I expect a string there."
* RM 1.31 1209 *
--- FidoPCB v1.4 [ff013/c]
---------------
* Origin: Sound Advice - 24 Nodes (816)436-4516 (1:280/333)
|