Title

trim function help

Post

hi all im having a little trouble with the trim function and cant work out how to build it i basicly need to trim the design id out of this long string so i need to trim it to 111616 but it isnt always a certain position from the left or right or in the middle so none of the trim functions fit what i need to trim can anyone help me with the exact function this needs to be?

ok i tried to well copy and paste that into a set variable and made a variable $$image changed yourtextfieldhere to the field import::item name and it returns nothing when i imediatley in the same script do set field with the id $$image

I suggest posting the script if you can't find the syntax error responsible for your null result.

To post a script to the forum:

You can upload a screen shot of your script by using the Upload an Image controls located just below Post A Answer.

You can print a script to a PDF, open the PDF and then select and copy the script as text from the opened PDF to your clipboard for pasting here. (with this approach, you can get multiple script steps on the same line, please edit the pasted text by inserting some returns to separate those steps.)

If You have FileMaker Advanced, you can generate a database design report and copy the script as text from there.

If you paste a text form of the script, you can use the Script Pretty box in the Known Bugs List database to paste a version that is single spaced and indented for a more professional and easier to read format.