comp.lang.ada
 help / color / mirror / Atom feed
From: "F. Britt Snodgrass" <fbsnodgr@cacd.rockwell.com>
Subject: String to Variable Name Mapping
Date: 1996/04/11
Date: 1996-04-11T00:00:00+00:00	[thread overview]
Message-ID: <4kjico$emb@newssvr.cacd.rockwell.com> (raw)

Is there an attribute or some other way to use the contents of a string
variable to point to another variable?

For example, if I have the following declarations,

  Int_Var : Integer;
  Str_Var : String (1..32) := "Int_Var";

can I somehow use the contents of Str_Var to make an assignment to 
Int_Var?

I'd like to do this as a way of initializing variables by reading from a 
text file containing the variable name and the desired initial value.

Thanks,
Britt Snodgrass  (mailto:britt@acm.org)





             reply	other threads:[~1996-04-11  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-11  0:00 F. Britt Snodgrass [this message]
1996-04-13  0:00 ` String to Variable Name Mapping Laurent Guerby
1996-04-13  0:00 ` Robert Dewar
1996-04-19  0:00 ` Todd Coniam
1996-04-25  0:00 ` Felaco
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox