Jump to content

Error var - (Moved)


Recommended Posts

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?

Captura.PNG

Edited by sebastiian
Link to comment
Share on other sites

  • Developers

@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 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.
  :)

Link to comment
Share on other sites

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 by Musashi

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

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 by sebastiian
Link to comment
Share on other sites

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 ?

Captura.PNG

I can use the $ Hello_World variable anywhere or it has to be on top

Link to comment
Share on other sites

  • Developers

How would it ever work when not defined before you use it in msgbox()? ;)

Edited 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.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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