Hi
I have an xtend expression that is supposed to returns: String but it returns [String].
This is the xtend expression
import NETSTMM;
String datatypeconv(NETSTMM::Languages l,NETSTMM::DataTypeKind partype ):
if l.toString().trim()=='vbnet' then
{if (partype!=null) then
switch (partype.toString()) {
case 'DateTime':'Date'
case 'int':'Integer'
case 'Bool':'Boolean'
case 'decimal':'Decimal'
default: partype.toString().trim()
}
else
"String"
}
else
switch (partype.toString().trim()) {
case 'Date':'DateTime'
case 'String':'string'
case 'Integer':'int'
default: partype.toString()
} ;
this is the xpand template to call it
ByVal «M.NMthHasPar.PName» As «datatypeconv(M.NMBelongsMC.MCBelongsPr.PrLanguage,M.NMthHasPar.first().PType)» _
and this is the result
| Quote: |
ByVal Param1 As [String], _
|
but I need it to retuns
| Quote: |
ByVal Param1 As String, _
|
Any ideas?
Elisa