STRPOS

sameer_79sameer_79 Member Posts: 39
Dear All

Any one correct this code

if Srtpos(mysrt,'0','1','2') <> 0 then

Error('MyError');

this code is not checking value 012.

Regards

Comments

  • kanchankanchan Member Posts: 21
    There are only two parameters that can be passed to Strpos.

    If you want to find 012 then the Substring should be '012'
    --
    Kanchan Patil
  • hemantOnehemantOne Member Posts: 98
    hi


    Use-
    IF STRPOS(mystr,'012')<>0 THEN
    Regards,
    Hemant
    They can conquer who believe they can
    .
  • matttraxmatttrax Member Posts: 2,309
    If you need information on how a specific function is used the best place to check is the C/SIDE Help from the NAV Client.
Sign In or Register to comment.