Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Search for Alpha OR Numeric

Featured Replies

Hi Guys,

I'd like to do a find on a field (defined as text) and depending on whether the 1st character is alpa or numeric, act accordingly.

I'm ok on the logic and scripting side, I think I can extract the first character using the *Left ( text , number )* function - but how do I determine if it's alpha or numeric?

I can't seem to find the correct function.

Help appreciated.

If (Left ( text , 1 ) >= "0" and Left ( text , 1 ) <= "9")

If true then Number else Alpha

if(texttonum(left(text,1))>=0,"Numeric","alpha")

Edited by Guest

That won't work, I am afraid. If text does not contain numeric characters, then [color:blue]TextToNum(text) = 0 is true.

So your If() will always return true.

Try instead:

Case(

IsEmpty( TextToNum( Left(text , 1 ) ) ) , "alpha" ,

"numeric"

)

or:

Case(

Length( TextToNum( Left(text , 1 ) ) ) , "numeric" ,

"alpha"

)

Edited by Guest

You can try this too:

Case(

GetAsNumber ( Left ( text; 1 ) ) = "";"alfha";

"numeric"

)

Oops: I realised only now that You have FM6...

the function GetAsNumber() is for 7 owners !!

Edited by Guest
wrong version

  • Author

Thanx comment, that looks good, i'll give it a go.

:beertime:

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.