Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6696481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:20:48+00:00 2026-05-26T06:20:48+00:00

I am writing a drop-down console for my app. Suppose I want to output

  • 0

I am writing a drop-down console for my app. Suppose I want to output the value of variable myvar by using the following command:

]/get myvar

Is there a better way than to create a map so that the output is

return mymap[argv[0]]; ?

In other words, can I associate the input char array “myvar” to the variable named myvar without doing it manually for all the variables in the program.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:20:48+00:00Added an answer on May 26, 2026 at 6:20 am

    Short answer:

    No.

    Long answer:

    Pfff, no way! After your piece of code is build as a binary, there is no such thing as a variable name. Just some pointers, values on the stack, and so on…

    If you want to implement something like this, I would recommend you to go for a scripting library (Lua, for example), and manually map some variables so you can read/change those variables via scripts. In this case the console input is basically what you are feeding to the script engine.

    This might be a good reference.

    UPDATE:

    In fact, just found the project called Lua Console.
    Seems like it’s not maintained anymore, but it doesn’t mean it will not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing jQuery Mobile App. I am changing drop-down selected option via below
I'm writing my own simple drop-down...and it's not going so well. I need only
I'm writing a page with several text fields and a drop down. The fields
I'm currently writing a small python app that embeds cherrypy and django using py2app.
I'm in the process of writing a custom drop down button in silverlight. While
I am writing a UserControl that will act kinda like a drop down list,
I'm working on writing a drop-down menu with jQuery and I have a question.
I am writing an Android App in which I am using Spinner Control. I
I have the following drop down list and selects the option based on the
I am designing simple HTML with a drop-down list and a button. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.