<h1 id="section_0" style="margin:0px;padding:0px;border:0px;font-family:"Linux Libertine",Georgia,Times,serif;font-weight:inherit;font-stretch:inherit;line-height:1.3;font-size:1.7em;vertical-align:baseline;background-image:none;word-wrap:break-word;word-break:break-word;color:rgb(34,34,34)"><span style="font-size:15px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">associative array?</span></h1><div><span style="font-size:15px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><br></span></div><h1 id="section_0" style="margin:0px;padding:0px;border:0px;font-family:"Linux Libertine",Georgia,Times,serif;font-weight:inherit;font-stretch:inherit;line-height:1.3;font-size:1.7em;vertical-align:baseline;background-image:none;word-wrap:break-word;word-break:break-word;color:rgb(34,34,34)"><span style="font-size:15px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">On Sunday, July 7, 2019, James Richters <<a href="mailto:james@productionautomation.net">james@productionautomation.net</a>> wrote:</span><br></h1><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This might sound silly,  but is it possible to somehow specify a variable with a string containing the name of the variable?<br>
<br>
For example:<br>
<br>
Var<br>
   MyVariable1 : Word;<br>
   MyVariableName : String;<br>
<br>
Procedure ShowVariable(Variablename);<br>
Begin<br>
Writeln(Variablename,' = $', inttohex(    (Somehow get the value of the variable specified by the name here ) ,4));<br>
End;<br>
<br>
Begin <br>
MyVariableName:= 'MyVariable1';<br>
ShowVariable(MyVariableName);<br>
End.<br>
<br>
Is such a thing possible?<br>
<br>
James<br>
______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">https://lists.freepascal.org/<wbr>cgi-bin/mailman/listinfo/fpc-<wbr>pascal</a><br>
</blockquote>