1. mahmoud mahmoud
  2. PowerBuilder
  3. Tuesday, 29 November 2022 05:29 AM UTC

I have string text and I want to get apart of text which after dash symbol 

Example:

 

 

Invo-A12223444

RetInvo-B338889

DebitNote-D2234

 

I need to get from a ,b,d but this text in variable and I don't know length but need after  dash

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 29 November 2022 05:39 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Mahmoud,

Do you want "A12223444" from "Invo-A12223444"?

string ls_text = "Invo-A12223444"
string ls_part

ls_part = Mid (ls_text, Pos (ls_text, "-") + 1)

HTH,

René

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.