Brian Dunning's FileMaker Custom Functions

Text_CaseShift ( myParam )

Convert Text from ANY Selection from ANY Field to Upper Proper Lower Case at ASCII Level (NOT a FileMaker Style)

  Average rating: 3.9 (40 votes) Log in to vote

Joel Englander   Joel Englander
Joel Englander
http://www.asymptotes.com/

Share on Facebook Share on Twitter

  Sample input:
mytext
  Sample output:
MYTEXT
Mytext

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Convert Text from ANY Selection from ANY Field to Upper or Proper or Lower Case
at ASCII Level (NOT a FileMaker Style)
or it also remove Format
or anything you may add in that custom function
(but from ANY Selection from ANY Field) and not only the All in the specify Field
————————————————————————————————————————
Perform Script [ “Contact : Style : myScript”; Parameter: "Upper" ]
Perform Script [ “Contact : Style : myScript”; Parameter: "Proper" ]
Perform Script [ “Contact : Style : myScript”; Parameter: "Lower" ]
Perform Script [ “Contact : Style : myScript”; Parameter: "RemoveFormat" ]
———————————— Script for FM 10 ———————————————————
Set Variable [ $Select_Start; Value:Text_CaseShift ( "Start" ) ]
Set Variable [ $Select_End; Value:Text_CaseShift ( "End" ) ]
Set Field By Name [ Text_CaseShift ( "Name" ); Text_CaseShift ( Get ( ScriptParameter ) ) ]
Set Selection [ Start Position: $Select_Start; End Position: $Select_End ]
———————————Script for FM 7+8+8.5+9————————————————
Set Variable [ $Select_Start; Value:Text_CaseShift ( "Start" ) ]
Set Variable [ $Select_End; Value:Text_CaseShift ( "End" ) ]
Set Field [ Text_CaseShift ( Get ( ScriptParameter ) ) ]
Set Selection [ Start Position: $Select_Start; End Position: $Select_End ]
————————————————————————————————————————

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: