Announcements
No record found.
We have a variable n: code[20]
where n := 'SCI007.001';
Need to extract the only SCI007 i.e before the seperator (dot)
Any suggestions ?
Use this docs.microsoft.com/.../text-strpos-method
Then you know the position and you can copystr
You can try this:
trigger OnRun()
var
mytext: Text;
mynewtext: text;
begin
mytext := 'SCI007.001';
mynewtext := copystr(mytext, 1, (StrPos(mytext, '.') - 1));
Message(mynewtext);
end;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,002 Super User 2026 Season 1
YUN ZHU 1,255 Super User 2026 Season 1
AndrewThomas81 1,217