Finding and deleting text within symbols within a single field...
Results 1 to 8 of 8
  1. #1
    Limited Access Member
    Location:
    Denver
    Join Date
    Apr 2008
    Posts
    90
    FM Version
    Filemaker Pro 9, 11
    Skill Level
    Intermediate
    OS
    Windows & Mac
    Rep Power
    0

    Finding and deleting text within symbols within a single field...

    FileMaker support and FileMaker services for your business by the FileMaker developers at Excelisys. We are FileMaker Pros for average Joe's!
    Hi,

    We have a issue we are trying to resolve.

    We have imported information from WebHelpDesk. One of the fields is formatted as such:

    <note date="04/18/2011 7:37 pm" author="dsimons" type="tech" time="15" rate="No Rate">I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.

    We would like to run a calculation or a script to get rid of most of what is in that field.

    Example: We would like to find and delete the symbol <> and all of the text in-between. Only in that field.

    Original (Bold being what we want to strip out): <note date="04/18/2011 7:37 pm" author="dsimons" type="tech" time="15" rate="No Rate">I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.

    Modified (This is what we want to keep): I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.

    Is this possible with a calculation or a script of some kind. Right now, we manually remove the information. With thousands of files, that is no longer an option.

    Thanks in advance,
    Ken

  2. #2
    Senior Moderator
    Location:
    Connecticut
    Join Date
    May 2001
    Posts
    2,077
    FM Version
    FileMaker 10A Server 10
    Skill Level
    Developer
    OS
    Windows & Mac
    Rep Power
    50

    Re: Finding and deleting text within symbols within a single field...

    Of course before you do anything back up your file

    If a calculation

    Middle (YourTablaName::YourFieldName ; Position (countvalues::NoteField ; ">" ;1; 1 )+1 ;500 )

    //Note 500 is amount of characters to show , maybe less , but if more that number will need to increase

    In a Script

    Set Field [YourTablaName::YourFieldName] ; Position (countvalues::NoteField ; ">" ;1; 1 )+1 ;500 )
    11 years at Forum, and still at it

    Robert Schaub

  3. #3
    Limited Access Member
    Location:
    Denver
    Join Date
    Apr 2008
    Posts
    90
    FM Version
    Filemaker Pro 9, 11
    Skill Level
    Intermediate
    OS
    Windows & Mac
    Rep Power
    0

    Re: Finding and deleting text within symbols within a single field...

    So, this is basically saying: In this field, "Notes", find "<" and ">" and delete everything in-between?

  4. #4
    Senior Moderator
    Location:
    Connecticut
    Join Date
    May 2001
    Posts
    2,077
    FM Version
    FileMaker 10A Server 10
    Skill Level
    Developer
    OS
    Windows & Mac
    Rep Power
    50

    Re: Finding and deleting text within symbols within a single field...

    Kind of... you see the position in the calc. It is looking to see what number space it occupies.
    the Right statement is saying start in position where the > is plus 1 space and give me what is in
    the next 500 characters.
    11 years at Forum, and still at it

    Robert Schaub

  5. #5
    Limited Access Member
    Location:
    Denver
    Join Date
    Apr 2008
    Posts
    90
    FM Version
    Filemaker Pro 9, 11
    Skill Level
    Intermediate
    OS
    Windows & Mac
    Rep Power
    0

    Re: Finding and deleting text within symbols within a single field...

    Do you have an example of the result? Of what we will possibly be looking at after running the script or calc?


    Thanks for all the help by the way. Very appreciated.

  6. #6
    Senior Moderator
    Location:
    Connecticut
    Join Date
    May 2001
    Posts
    2,077
    FM Version
    FileMaker 10A Server 10
    Skill Level
    Developer
    OS
    Windows & Mac
    Rep Power
    50

    Re: Finding and deleting text within symbols within a single field...

    I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.
    11 years at Forum, and still at it

    Robert Schaub

  7. #7
    Limited Access Member
    Location:
    Denver
    Join Date
    Apr 2008
    Posts
    90
    FM Version
    Filemaker Pro 9, 11
    Skill Level
    Intermediate
    OS
    Windows & Mac
    Rep Power
    0

    Re: Finding and deleting text within symbols within a single field...

    LOL. Ok. Thanks...

  8. #8
    Senior Moderator
    Location:
    Connecticut
    Join Date
    May 2001
    Posts
    2,077
    FM Version
    FileMaker 10A Server 10
    Skill Level
    Developer
    OS
    Windows & Mac
    Rep Power
    50

    Re: Finding and deleting text within symbols within a single field...

    This will illuminate the guess of how many characters remain after the >

    Middle (Yourtable::YourField ; Position (Yourtable::YourField ; ">" ;1; 1 )+1 ; Length(Yourtable::YourField) - Position (Yourtable::YourField ; ">" ;1; 1 )+1 )
    11 years at Forum, and still at it

    Robert Schaub

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads - The answer to your question may be in one of these posts!

  1. Deleting text from a field before (or after) a given string
    By ghostwriter in forum FileMaker Pro 8.5
    Replies: 2
    Last Post: 04-09-2010, 07:39 PM
  2. Replies: 5
    Last Post: 03-01-2010, 08:11 AM
  3. Button for single field text format script
    By afrodite in forum ScriptMaker and Scripting
    Replies: 1
    Last Post: 05-03-2009, 03:10 PM
  4. Attaching links and scripts to single words in a text field
    By polarpro in forum Layouts and Design
    Replies: 4
    Last Post: 03-04-2009, 02:43 PM
  5. Finding email addresses (no worky due to symbols)
    By wes plate in forum Find, Sort and Search
    Replies: 4
    Last Post: 02-13-2004, 05:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •