ok.. got it. try this.
myVar := COPYSTR(String,STRPOS(String,':')+1,MAXSTRLEN(String)-STRPOS(String,':')));
It worked with myVar := COPYSTR(String,STRPOS(String,':')+1
It didn't work with myVar := COPYSTR(String,STRPOS(String,':')+1,MAXSTRLEN(String)-STRPOS(String,':')));
that's not true.
you must have written without +1.
It will work.
ok, thanks! sorry but I can't see the "Did this answer the question? Yes · No" so I can't choose your answer... however I clicked the "like".. thank you @mohana_cse06 !
Comments
https://msdn.microsoft.com/en-us/library/dd355417.aspx
Look at the links.
myVar := COPYSTR('name:Mark',STRPOS('name:Mark','M'))
does your string has " " also?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
myVar := COPYSTR(String,6,MAXSTRLEN(String)-6));
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
But, in another case I have to start from the character after ":"... any tip?
It's not fixed, I have to select the character after ":"
did you above code?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
myVar := COPYSTR(String,STRPOS(String,':')+1,MAXSTRLEN(String)-STRPOS(String,':')));
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It worked with myVar := COPYSTR(String,STRPOS(String,':')+1
It didn't work with myVar := COPYSTR(String,STRPOS(String,':')+1,MAXSTRLEN(String)-STRPOS(String,':')));
Thank youu!!!
in which case it didn't work?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
all cases, it prints ":blabla"
you must have written without +1.
It will work.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
ok, thanks! sorry but I can't see the "Did this answer the question? Yes · No" so I can't choose your answer... however I clicked the "like".. thank you @mohana_cse06 !