Tuesday, April 19, 2011

String to Validate only Numbers [Regular Expression is AX 2009]


Following is an Example of Regular Expressions :

static void TextBuffer_regularExpression(Args _args)
{
    TextBuffer txt = new TextBuffer();
    str msg = "98797897";
    ;


    txt.setText(msg);
    txt.regularExpressions(true);   // activate regular expr in search


     // Regular expression to validate only digits
     if (txt.find("^[0-9]+$"))
    {
        info("string contains only numbers");
    }

}

1 comment:

  1. IGT unveiled Megabucks in 1986 as the primary progressive jackpot and shortly after a flurry of progressives have been introduced into the market. Every time you push down on the ‘spin’ button on a bodily slot machine or an online slot, you take management in a means that your brain views as constructive. Each time you press the button, 토토사이트 the visible whirlwind of colours and shapes in entrance of your eyes launch Dopamine in your brain. While deployed abroad, service members are sometimes isolated, separated from friends and family and obtain elevated pay. For these looking for recreation on base, slot machines are sometimes only a quick walk away.

    ReplyDelete

Thanks for your time reviewing this blog.