Jump to content

Recommended Posts

  • Moderators
Posted

@geotau3 I am going to guess you're wanting to use a variable input by an end user? Rather than trying to take the string and make it into a variable (which means you won't know what that variable name is throughout your code until the user enters the string), why not just set the variable name to something you know ahead of time, regardless of the string? Something like this? It makes for much easier to manage code:

#include <MsgBoxConstants.au3>

Local $sInput = InputBox("Whatever you type in will become the value of $sInput", "", "", Default, 400)
MsgBox($MB_OK, "The value of $sInput", $sInput)

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

good try but let say i have Function witch have but i do want create case for each variable i had so Fun GET($entrydata, $nameofvriablewilluse)

 

Posted

Assign?

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...