Given that, here's a copy of what I'm doing:
Code Sample |
prototype STRING GetTimeStamp(); function GetTimeStamp() STRING szDate, szTime, szTimeStamp; begin GetSystemInfo(DATE, nResult, szDate); GetSystemInfo(TIME, nResult, szTime); szTimeStamp = szDate+" at "+szTime; return szTimeStamp; end; |
The compile error I get is " ... 'GetTimeStamp' : return type mismatch with prototype". How come though? The declaration says STRING and the return is type STRING, so what gives?
I'd appreciate some assistance here in resolving this problem. In the meantime, I'm gonna cop out and just make it a parameter as I did the last time.