Options

Filtering substrings

Hello, today I have a problem related with text input, here's the explanation:

Variables used:
gItemNo - Text 100
lRecItem2 - Record 24

Trigger: OnValidate - Page

IF gItemNo <> '' THEN BEGIN 
  IF STRPOS(gItemNo,'|') = 0 THEN BEGIN 
    lRecItem2.RESET;
    lRecItem2.SETRANGE("Balance Code","Balance Code");
    lRecItem2.SETRANGE("No.",gItemNo);
    IF NOT lRecItem2.FINDSET THEN
      ERROR(Text0001,gItemNo);
  END ELSE BEGIN

  END;
END;


What I have to do is simply, in the same field, write more than one product number without returning the error. After the END ELSE BEGIN
the missing code must filter each Item No. in something like this "12345678|12345678", the problem is that there can be more than one | and a lot of Item No. can be added...

I just need strategies to see this in another perspective, I don't want the rest of the code.

Best Answer

Answers

  • Options
    MarkKsMarkKs Member Posts: 12
    edited 2017-10-03
    Oh I was not expecting DotNet. But It worked, Thank you.
    EDIT: Well both ways would work, Thank you again
Sign In or Register to comment.