Get variable by name

  • Follow


Hi! I need get a variable value passing it's name as reference. 
Example:
    
   Fator : Double

   Get variable value passing text "Fator".    

OS Windows, language DELPHI. 


           Thanks!

0
Reply maurosm 11/24/2003 11:21:24 AM

maurosm@terra.com.br (Mauro Magalh?es) wrote:
>
>Hi! I need get a variable value passing it's name as reference. 
>Example:
>    
>   Fator : Double
>
>   Get variable value passing text "Fator".    
>
>OS Windows, language DELPHI. 

If you are asking a Delphi question, why are you posting in an X86
assembler newsgroup?

In any case, what you want to do is not generally possible.  In a debug
build, you might be able to parse the executable file, find the debug
symbols, look up your variable, and hope that it has an address, but that's
a lot of work, and it doesn't help at all for retail builds.  In a retail
build, the word "Fator" probably doesn't even occur in the binary.
-- 
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.

0
Reply Tim 11/25/2003 7:55:33 AM


1 Replies
383 Views

(page loaded in 0.125 seconds)

Similiar Articles:













7/24/2012 12:57:09 AM


Reply: