Split text
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-09-12 12:59 PM
‎2018-09-12
12:59 PM
What I have is an object where the user can input a link.
What I would like to do is tell if the string contains "www." or "http" at the beginning.
How can I achieve this? I assume it would be by using the split function.
Thanks
ArchiCAD 23
Windows 10
Windows 10
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-09-12 01:12 PM
‎2018-09-12
01:12 PM
IF STRSTR(_link_name, "www.") OR STRSTR(_link_name, "http://") THEN ...tells if the string contains the substring.
With STRSUB you can check the position of the substring.
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de