Skip to main content

Posts

Showing posts with the label print in string format

Get container to array source in axapta

DictType dictType = new DictType(_arrayFieldTypeId); Source s = strfmt('%1 c2a(container _arrayData) \n',dictType.name()); s += '{ \n'; s += ' int i; \n'; s += strfmt( ' %1 anArray; \n',dictType.name()); s += strfmt( ' for (i = 1; i <= %1; i++) \n',dictType.arraySize()); s += ' anArray[i] = conPeek(_arrayData,i); \n'; s += ' return anArray; \n'; s += '} \n';