Hi Charles,
this is a small example where I think a programmer who is used to work with $ suffix for type string could get confused:
#lookahead
print Proper$("tRaNsLaToR")
Function Proper(string A$) as string 'Proper$ will throw an error, without: as string will throw an error
Local T$ as string 'without: as string will give result 0
T$ = Ucase$(Left$(A$,1)) & Lcase$(Mid$(A$,2,256))
Function = T$
End Function
I had to change: Function Proper$(A$) to: Function Proper(string A$) as string
and I had to change: Local T$ to: Local T$ as string
Local T$ alone assumes integer type?
Function Proper$(A$)
Function Proper$(string A$)
Function Proper$(string A$) as string
will always give the same errpr message (Unidentified instruction: returnvar), but it is not quite clear what is missing. I suppose, in the current stage of Oxygenbasic it would be easier to find a possible error without using the $ suffix?
Roland