Avatar

Level 1

Thanks for the reply!

Unfortunately that did not work. I found a work around, doing (ContractInfo.AgreementDetails.Org.rawValue >= 6000 && ContractInfo.AgreementDetails.Org.rawValue <=6999).

I would still like to know why the substring command wasnt working correctly. I have tried many different variations and none of them work.

A crazy work-around I did was this:

var str = ContractInfo.AgreementDetails.Org.rawValue;

TextField1.rawValue = str;

TextField2.rawValue = TextField1.substr(0,1);

TextField2 was indeed correctly populated, but I do not know why i have to go through this crazy work around. Does anyone know why the following doesnt work?

var str = ContractInfo.AgreementDetails.Org.rawValue.substr(0,1)