Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

Talking LiveCode • Re: How to Change All Occurrences of a Substring to Uppercase in a Field

$
0
0
I was overcomplicating things. I believe I’ve found the most straightforward way to do it.

CODE:

on mouseUp   put "in front" into obje   put upper(obje) into obje2   replace obje with obje2 in field almacenb preserving stylesend mouseUp
mmm... Although I hadn’t considered the problem of finding a substring within another word, what I need is for the search to find whole words only. For example, if I want to replace all instances of 'here' with 'HERE', I don’t want 'there' to become 'tHERE'.

Statistics: Posted by Fermin — Fri Sep 20, 2024 9:13 am



Viewing all articles
Browse latest Browse all 669

Trending Articles