Skip to Content
0
Former Member
Jun 10, 2005 at 09:46 PM

Validate datatype of an attribute

14 Views

Hi,

Need to validate whether value of an attribute is an instance of the datatype of the attribute.

Will the following code work ?

IWDNodeElement element = wdContext.nodePlants.getCurrentElement();

IWDAttributeInfo attrInfo = (IWDAttributeInfo)element;

if (element.getAtrributeText("test") instanceof attrInfo.getDataType()){

//code here

}

Do let me know.

Thanks !

Sri