Announcements
No record found.
Hello,
I have a string accepted from external program.
I want to check whether the string is a guid (by convention)/
How can I do that?
Thanks :)
*This post is locked for comments
The easiest option is to call str2guid() and check if you get a value (as done in AifMessage::validate()). Another way would be to use System.Guid::Parse()/TryParse(). Yet another would be to use a regular expression.
Thank you.
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!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader