Monday, November 06, 2006

Find out the string length of an extendedDataType!

Find out the string length of an extendedDataType --> was necessary for me as i wrote an select-statement with the connection-class.

static void TestJob(Args _args)

{

Dictionary dict;

DictType dictType;

;

dict = new Dictionary();

dictType = dict.typeObject(dict.typeName2Id(extendedtypestr(AccountName)));

info(strfmt("Name : %1 \nId: %2 \nStringLength: %3 \nAdjustment: %4 \nLabel: %5 \nHelp: %6 \nBasetype: %7", dictType.name(), dictType.id(), dictType.stringLen(), dictType.stringRight() ? "Right" : "Left", dictType.label(), dictType.help(), int2str(dictType.baseType()) + " - " + enum2Value(dictType.baseType())));
}

1 comment:

Anonymous said...

Wow, that looks beyond complicated, you really do know the subject well! By the way, I have just asked microsoft partner uk to implement their software in my company. We are experiencing some difficulties with customer relationships management, so I hope it will help us improve.