Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,151
Jainam M. Kothari 1,443 Super User 2025 Season 2
YUN ZHU 1,092 Super User 2025 Season 2