Jump to content

Msgbox error


VicTT
 Share

Recommended Posts

What is wrong with this line?AutoIt panicks with a "Error: Error in expression"

Msgbox(0,"Cursul valutar","La "&@MDAY&" "&$luni[@MON-1]&" "&@YEAR&@LF&"1 USD = "&$USD&" lei"&@LF&"1 EURO = "&$EUR&" lei"&@LF&"Fata de "&$arr2[1]&" "&$luni[$arr2[2]-1]&" "&$arr2[3]&@LF"USD a "&_Iif($USD>$arr[2],"crescut","scazut")&" cu "&Abs($USD-$arr[2])&" lei "&@LF&"EURO a "&_Iif($EUR>$arr[3],"crescut","scazut")&" cu "&Abs($EUR-$arr[3])&" lei")

Got it...sorry to disturb you guys..I forgot a "&".. ;)

Quote

Together we might liveDivided we must fall

 

Link to comment
Share on other sites

What is wrong with this line?AutoIt panicks with a "Error: Error in expression"

Msgbox(0,"Cursul valutar","La "&@MDAY&" "&$luni[@MON-1]&" "&@YEAR&@LF&"1 USD = "&$USD&" lei"&@LF&"1 EURO = "&$EUR&" lei"&@LF&"Fata de "&$arr2[1]&" "&$luni[$arr2[2]-1]&" "&$arr2[3]&@LF"USD a "&_Iif($USD>$arr[2],"crescut","scazut")&" cu "&Abs($USD-$arr[2])&" lei "&@LF&"EURO a "&_Iif($EUR>$arr[3],"crescut","scazut")&" cu "&Abs($EUR-$arr[3])&" lei")

Got it...sorry to disturb you guys..I forgot a "&".. ;)

Try this:

Msgbox(0,"Cursul valutar","La "&@MDAY&" "&$luni[@MON-1]&" "&@YEAR&@LF&"1 USD = "&$USD&" lei"&@LF&"1 EURO = "&$EUR&" lei"&@LF&"Fata de "&$arr2[1]&" "&$luni[$arr2[2]-1]&" "&$arr2[3]&@LF&"USD a "&_Iif($USD>$arr[2],"crescut","scazut")&" cu "&Abs($USD-$arr[2])&" lei "&@LF&"EURO a "&_Iif($EUR>$arr[3],"crescut","scazut")&" cu "&Abs($EUR-$arr[3])&" lei")

You forgot an &

Edited by Raindancer
Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer
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...