logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
roymadhavi  
#1 Posted : Monday, January 23, 2006 4:56:55 AM(UTC)
roymadhavi

Rank: Member

Groups: Registered, Registered Users
Joined: 12/15/2005(UTC)
Posts: 13

Hi, I have a small query regarding variables. I read thru the MS manuals and found that we can have variables in the function. I have two queries 1. Can we have a variable which can be assigned a string literal like Var1:="ABC". When I try this, I get an error. I tried this in expert advisor. 2. We can have a variable defined in a function and access it using fmvar. I want to use a variable to share between two function calls. Can this be done. If yes, how to set the variable to different value using this fmlvar function. Thanks Madhavi Roy [/list]
Justin  
#2 Posted : Thursday, February 2, 2006 6:35:57 AM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

I am pretty sure variables must be assigned a specific numerical value or function, no text strings Also I am fairly certain that you cannot define a variable within a function, they must be defined by themselves.
StorkBite  
#3 Posted : Thursday, February 2, 2006 8:19:20 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey roymadhavi- Just curious... why would you want to assign a string literal to a mathematical formula? Are you trying to create text labels? As far as persisting variables, check out the MSX section of the forum. Also, you migt glance over this thread: http://forum.equis.com/viewtopic.php?t=691
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.