Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I am using the below code:
Let vVarCount=RangeMax(NoOfRows('TmpSalesRep'),0);
trace $(vVarCount);
For vVar=0 to $(vVarCount)
Let vTempName = peek('Sales Rep ID Temp',$(vVar),'TmpSalesRep');
[TempSales8]:
load
[Sales Rep ID] as AsOfSalesRepID8
resident [TmpTable]
where
[Process Date] >= '$(vPrevEightYearStartDate)' and
[Process Date] <= '$(vPrevYearEndDate)' and
[Sales Amount USD]=0 and
[Sales Rep ID] = '$(vTempName)';
if(NoOfRows('TempSales8')>0) then
Let ID = '$(vTempName)'&; //I want to concatenate the '$(vTempName)' values as '1234','2015', '5679'
end if
Next vVar
I am using this code: Let ID = '$(vTempName)'&;
and I want to concatenate the '$(vTempName)' values as '1234','2015', '5679'
So can u give me the correct syntax?
add at the end of the script
LET ID = chr(39) & Replace('$(ID)', ',', chr(39) & ',' & chr(39)) & chr(39);
trace $(ID);
For vVar=0 to $(vVarCount)-1
if(NoOfRows('TempSales8')>0) then
Let ID = IF(len('$(ID)')>0, '$(ID)' & ',') & '$(vTempName)' ;
end if
Hi,
it works but, Can it be make as:
'12','14', '16' like that?
Currently it is 12,13,14.
Also if you help me for one of my previous post:
As I am facing problem with Week and year calculations?
Thanks,
Sandip
add at the end of the script
LET ID = chr(39) & Replace('$(ID)', ',', chr(39) & ',' & chr(39)) & chr(39);
trace $(ID);