lua .. command

Section for all discussions related to development using Indicore API/SDK.

Moderator: admin

lua .. command

Postby markltbl » Sat Feb 22, 2014 4:58 pm

Hi sorry to all those who may think this is a simple and silly question but im just starting to learn lua code. Im finding many .. commands in sorce codes what does this mean. For instance

local name = profile:id() .. "(" .. source:name() .. ", ".. n ..")";
instance:name(name);

thanks in advance

Mark
markltbl
 
Posts: 23
Joined: Fri May 10, 2013 11:20 am

Re: lua .. command

Postby Valeria » Mon Mar 03, 2014 10:39 pm

Hi markltbl,

This way you can create and set a name of an indicator.
A name of an indicator consists of:
ID (profile:id()), name of the source (source:name()) and parameters (n).
But you can set any name which you like.
Valeria
 

Re: lua .. command

Postby Apprentice » Thu Mar 06, 2014 3:06 am

Like This

name = " ID " .. profile:id() .. " Name of the source (" .. source:name().. ")" .. " Parameter(" .. n .. ")";
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18837
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: lua .. command

Postby markltbl » Tue Mar 25, 2014 7:52 am

Thanks Valeria and Apprentice.
Appreciate your help.
markltbl
 
Posts: 23
Joined: Fri May 10, 2013 11:20 am


Return to Discussions

Who is online

Users browsing this forum: No registered users and 2 guests