Sunday, 23 June 2019

Find and replace

A very understimated Livecode tool is the editor Find and Replace
In order to open Find and Replace window click on "Edit -> Find & Replace":



otherwise you can press  Ctrl+Shift+F.



This window permit you to find or replace anything wherever is in your code.

Programmers use find to double check if a mistyping lead to an error or to check other programmer work. Please note that find works only on saved program; if you type and you don't save, the text just typed is ignored.


Find and Relace window permits you to refine your search with these option:
  • simple text (all chars are interpreted as simple chars)
  • jolly chars, like asterisk
  • regular expressions
  • case insensitive or case sensitive. 
  • one of the words or all words
  • in what part of the program limit the research (stack, carc ,button current source, etc.9
Results list show where they are:



Clicking on one of the results, you'll be immediately in the part of the code.


Replace is incredibly amazing, you can change a name in all the program, without worrying to forget some part of the program. Livecode program are so evolute, that other competitor programming language have so many files spread across folders that you usually miss something and never change what the code.

No comments:

Post a Comment