Sign in to follow this  
Followers 0
VicTT

Msgbox error

2 posts in this topic

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[/quote]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0