Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7215 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a string in foot and inches, 2'-2 1/2", and want to use the position function to return the location of the ' character. I get zero and not 2. Why?

Posted

Post the exact function you are using.

Is the field's data type set to text or number? It needs to be text for this to work.

Posted

i know that i am using the postion function correctly because if ask it to return the position of "a" in "this ' is a test", i get 11

Posted

No, I am saying you must go to the File menu and select File Options, then Text and then unckeck the box that says "Use smart quotes" Now every place you used a " or a ' retype it.

Your calculation should be Position ( String ; "'" ; 1 ; 1 ).

Posted

Well spotted Raplh.

I gues you couls keep smart quotes as well by also looking for curly quotes as well as straight ones.

This topic is 7215 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.