I have a Dynamc array of Records and I wish to pass one of the items in the array to a function by reference
So for example one of the array items - AArray[1].arecorditem is a string of 6 characters String[6]
the function would be -
function dosomething(var AStringVal:string):Integer;
So I would execute
Aresult:= dosomething(AArray[1].arecorditem);
however when I try to compile I get the Error Type of actual and formal var parameters must be identical.
Is this possible to do or should I assign the array item to a string and then pass the string to the function.
Thanks
Colin