On Mar 21, 2007, at 4:57 AM, Markus Winter wrote: > Thanks all! > >> You could do it with a global method that returned the appropriate >> result as well and then it could NOT be used on the left hand side of >> an assignment > > That's what I did and it seems to be working well, though as I > don't have > access to a PC at the moment I can't say how it works cross-platform. > >> Function CR.Get() as String >> static foo as String = Encodings.UTF8.Chr(13) >> return foo >> End Function > > Couldn't you also just say > > Function CR.Get() as String > return Encodings.UTF8.Chr(13) > End Function > > I'm not getting an error on compile for that ...
You could, but my version compiles on my machine, and it is faster every time it is called except the first, at no loss of maintainability. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
