|
Post by veneff on Jan 26, 2009 14:32:34 GMT -5
I had an assignment as: DebugMsg$ = DATE$("mm/dd/yyyy")+" "+TIME$()+" "+DebugMsg$
and received the error: Compile Error Type mismatch - String expression expected. DebugMsg$ = DATE$("mm/dd/yyyy")+" "+TIME$()+" "+DebugMsg$
I replaced the +(s) with ;(s) giving: DebugMsg$ = DATE$("mm/dd/yyyy");" ";TIME$();" ";DebugMsg$
This worked.
Vance
|
|
|
Post by StefanPendl on Jan 26, 2009 14:53:45 GMT -5
DATE$() is returning numerical values in some situations as does TIME$(). In those cases you need to use the semicolon for concatenation.
This is by design, concatenate strings with the plus-sign and mixed data, numbers and strings, with the semicolon.
|
|