How to create SDT based variable in a Object

Unofficial Content

 

private static void AddSDTVariable(KBModel kbModel, Procedure proc, SDT sdtobj)
{
	Variable oVariableNew = new Variable(proc.Variables);
	oVariableNew.Name = sdtobj.Name;
	oVariableNew.Type = eDBType.GX_SDT;
	Artech.Genexus.Common.Types.DataType.ParseInto(kbModel, sdtobj.Name, oVariableNew);

	proc.Variables.Add(oVariableNew);
}