Re: Workaround with Substitute fucntion and diacritical marks



On Mar 27, 7:19 am, "Remi-Noel Menegaux" <rnmenegaux AT free.fr>
wrote:
My way to solve this is to first create a global in which the user puts its
criteria.
Then I create a script in which one step is to Replace into a global (or
variable) the 'TTBS' = 'Text To Be searched' any 'wrong' character by a good
one. Ie it could look like this (pseudo code) :
Set Field (
Substitute ( Substitute ( Substitute ( Substitute ( Substitute ( Substitute
( Substitute ( Substitute ( Substitute ( Substitute (
Working_Text; " "; ""); "CR"; ""); "é"; "e")etc..
))))))))))
(where 'CR' stands for 'Carriage Return')
Then you apply the same formula to the search criteria and you make a 'Find'
of the modified criteria into the Working Text.
There are maybe more elegant ways to do that.
HTH.

One neat feature of the Substitute function eliminates the need for
nested Substitutes, using one sub and optional square brackets. So,
instead you can say Substitute(Working_Text; [" " ; ""]; ["CR"; ""];
[etc;etc]).
.



Relevant Pages

  • Re: Generic thanks
    ... >> means if the script of the Phaistos Disc is a syllabic script there ... >> it is impossible to found the right solution by chance. ... Therefore it's possible to check a decipherment by checking it ... Let us assume that you have a easy to calculate criteria to see if you ...
    (sci.lang)
  • Re: Users online
    ... It could execute some script or program which will inform or write to the file if user is active or idle. ... defintion / criteria of 'user is online' and how do you determine if users meet those criteria'. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Value deletion
    ... By saying "...of course the app bombs" isn't very descriptive. ... I have a script that writes a single record to a single row on a ... it selects with no criteria the needed field ...
    (perl.dbi.users)
  • Re: use find on button fields
    ... The workaround is either to tab into the field or script entry using Go To ... Running a script in Layout Mode switches FileMaker back to Browse Mode ... In a scripted Find process, go to that layout to enter your Find criteria, and include a step to return to the original layout once the Find is complete. ... the user will always forget the modifier keys, and run the script on button click anyway. ...
    (comp.databases.filemaker)
  • Re: Coordinating from and to addresses
    ... >>> criteria, it sets the from address to a certain account. ... >> I have a script that runs once a minute and checks the frontmost window. ... Barry Wainwright ...
    (microsoft.public.mac.office.entourage)