How to get all "linkText" in a field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

How to get all "linkText" in a field

Post by ale870 » Wed Apr 28, 2010 10:48 am

Hello,

I have a text field, and I defined some "hyperlinks" using linkText and textStyle=link.
No I need to get a list of all defined linkText in a field. I need something like a list.
Is it possible?
If I haven't that function, I need to parse char by char the field, in order to "discover" if a specific word has a defined linkText.

Thank you for your help
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to get all "linkText" in a field

Post by Mark » Wed Apr 28, 2010 11:56 am

ale870,

You could use the offset function to search the htmlText property of a field for "http://".

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: How to get all "linkText" in a field

Post by ale870 » Wed Apr 28, 2010 12:38 pm

This idea is interesting! I will make a test!
Thank you!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Post Reply