STORE VALUE IN CONTAINER AND USE IT IN ax 2012 D365
container conNote;
int i,k;
while select table where table.field == 'abc'
{
if(confind(conNote, table.description) == 0)
{
i++;
conNote = conIns(conNote, i, table. description);
}
}
container conNote;
int i,k;
while select table where table.field == 'abc'
{
if(confind(conNote, table.description) == 0)
{
i++;
conNote = conIns(conNote, i, table. description);
}
}
for (int j=1; j <= conlen(conNote); j++)
{
noteDescription = noteDescription + "," + conpeek(conNote, j);
info(conPeek(conNote,j));
}
Info(strfmt("%1",noteDescription));
if(noteDescription)
{
Description = strDel(noteDescription,1,1) + " " + Table.Description;
}
Info(strfmt("%1",Table.Description));
Condel function is used to remove the value from container.
Container =conDel(Container,2,1);
conNull function is used to clear all the value from container as
Container=conNull() ;
Thanks,
vikas Mehta.
No comments:
Post a Comment