Try this..........
void criarlabelControl (string nome,string texto, color cor,int x,int y,int size,int corner=1){
int soma=0;
if (nome!='PairLabel') soma=y+30; else soma=y;
ObjectDelete(nome);
ObjectCreate(nome,OBJ_LABEL,0, 0, 0);
ObjectSetText(nome,texto,size, 'tahoma', cor);
ObjectSet(nome, OBJPROP_CORNER, corner);
ObjectSet(nome, OBJPROP_XDISTANCE, x);
ObjectSet(nome, OBJPROP_YDISTANCE, soma);
With the new #strict property, variables that are declared within a nest only have scope within that nest. So for example if you use :-
for(int x=10;x>-;x--){do this..............}
You will find you cannot access x later in the function because it loses scope. Presumably same applies to an if nest.
Wealth Creation Through Technology