Nugroho's blog.: Parsing a String to Get a certain Substring (Serial Number, Product Keys, etc)

Pages

Thursday, March 14, 2019

Parsing a String to Get a certain Substring (Serial Number, Product Keys, etc)

I have a question from a new friend on my instagram

Basically, he needs only certain substring.

Here's my code to parse the string.

 

The main code is

s          := edit1.text;
p          := pos('ME',s);
edit2.text := copy(s,p+2,13);
.

No comments:

Post a Comment