<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Arial,Helvetica,sans-serif'>
Consider the application below. When I run it I do get the following output:<br /><br />name<br />rg��������name�F&{00000000-0000-0000-C000-000000000046}<br /><br />In other words I lose the first character (a) from the arguments supplied and the string returns with a lot of garbage. What am I doing wrong here?<br /><br />Rgds, Darius<br /><br />program test_args;<br /><br />procedure test(name: string; args: array of const);<br />begin<br />  writeln(name);<br />  writeln(args[0].VString^);<br />end;<br /><br />begin<br />  test('name', ['arg']);<br />end.<br />

</body></html>