PureBytes Links
Trading Reference Links
|
Ara,
Comparison of string literals (enclosed in quotation marks) was always case sensitive.
Only variable and function _identifiers_ are case insensitive.
Next version of AB will have StrToUpper and StrToLower that will allow easy
conversion between lower/uppercase as well as easy comparisions regardless of case
like
if( StrToLower( Var1 ) == "buy" )
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Ara Kaloustian" <ara1@xxxxxxxxxx>
To: "AB-Main" <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, September 02, 2004 10:13 PM
Subject: [amibroker] AFL if(...)
> I had a condition that gave me problems...
>
> Var1 = "BUY"; // capitalized
> Var2 = "BUY"; // capitalized
>
> if (Var1 == "BUY" and Var2=="Buy") // one of them not capitalized
>
> above condition gave me a FALSE answer because I did not capitalize "Buy" in if statement....
>
> My impression was the the case did not matter ....
>
> Is there a switch that set this conditions or has it always been case sensitive?
>
> Thanks
>
> Ara
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|