Thursday, May 15, 2014

Remove Space Bar and special Chaarcter while typing in Text field

// Remov Space Bar while typing in Text field

public void textChange()
{
    str text;
    int len;
    text = TextFIeld.valueStr();
    len = strLen(text);
 
    super();
    if(strLen(text) > 0)
    {      
        if(strnFind(text, " ",1,len) >= 0)
        {
            strdel(text,len-1,1);
            TextFIeld.text(text);
        }
    }
}

No comments:

Post a Comment

Disabling the flight in D365FO (CHD - Tier 1)

 INSERT INTO dbo.SYSFLIGHTING(FLIGHTNAME, ENABLED)  VALUES ('<FlightObjectName>_KillSwitch', 1)  or  INSERT INTO dbo.SYSFLIGHT...