Warning: unreachable code You specified a construct which will never be executed. Example: while false do begin {.. code ...} end;
201 Range check error If you compiled your program with range checking on, then you can get this error in the following cases: An array was accessed with an index outside its declared range. Trying to assign a value to a variable outside its range (for instance an enumerated type).
Hi Theddy, thank you for the reply. So, to make the code fully UTF8 compatible it should be {$IFDEF FPC} FVar : UTF8string?
Maybe better to overload some of the functions that take a string as parameter:Code: Pascal [Select][+][-]procedure TSimpleMsgPack.setAsString(pvValue: UTF8String);procedure TSimpleMsgPack.setAsString(pvValue: AnsiString);procedure TSimpleMsgPack.setAsString(pvValue: UnicodeString); etc.
BTW if you test the code with a console app in plain Freepascal you will see that it already works as you expected.It is just that lazarus default to UTF8. This should be resolved automatically in the future.