sebastiian Posted January 16, 2021 Posted January 16, 2021 (edited) local $Hola_Mundo MsgBox(0,'', $Hola_Mundo ) $Hola_Mundo = "Hola Mundo" No se puede ejecutar el script sin tener que colocar el $Hola_Mundo arriba ? Can't run the script without putting the $ Hello_World on top? Edited January 16, 2021 by sebastiian
Developers Jos Posted January 16, 2021 Developers Posted January 16, 2021 (edited) @sebastiian, This is an English forum, so please use English in your posts. Thanks! Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team Edited January 16, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Musashi Posted January 16, 2021 Posted January 16, 2021 (edited) Local $Hola_Mundo $Hola_Mundo = "Hola Mundo" MsgBox(0,'', $Hola_Mundo ) You must first assign a value to the variable before you show it in a message box. (Primero debe asignar un valor a la variable antes de mostrarla en un cuadro de mensajes. ) Edited January 16, 2021 by Musashi "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
sebastiian Posted January 16, 2021 Author Posted January 16, 2021 (edited) Hace 13 minutos, Musashi dijo: Local $ Hola_Mundo $ Hola_Mundo = "Hola Mundo" MsgBox (0, '', $ Hola_Mundo) Primero debe asignar un valor a la variable antes de mostrarla en un cuadro de mensaje. (Primero debe asignar un valor a la variable antes de mostrarla en un cuadro de mensajes.) hay manera de usar la variable sin importar en que lado este ?¿ Edited January 16, 2021 by sebastiian
Nine Posted January 16, 2021 Posted January 16, 2021 @sebastiian Did you hear what @Jos said about this forum being one in english only ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy
sebastiian Posted January 16, 2021 Author Posted January 16, 2021 55 minutes ago, sebastiian said: local $Hola_Mundo MsgBox(0,'', $Hola_Mundo ) $Hola_Mundo = "Hola Mundo" No se puede ejecutar el script sin tener que colocar el $Hola_Mundo arriba ? I can use the $ Hello_World variable anywhere or it has to be on top
Developers Jos Posted January 16, 2021 Developers Posted January 16, 2021 (edited) How would it ever work when not defined before you use it in msgbox()? Edited January 16, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now