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.

char(number) not working as I expected...

Featured Replies

I have a Calculation field (in FMPro 12) that includes the following:

Char ( 21 ) & Char ( 22 ) & Char ( 97)

[note: Calculation result is set as "Text"]

I had expected the result of this calculation to be !"a

but instead it is 2 blank spaces and a

Can somebody explain why the result doesn't include ! and "

17 minutes ago, philipcaplan said:

I had expected the result of this calculation to be !"a

Perhaps you think that the Char() function takes a hexadecimal number as its argument. It doesn't. The argument is a decimal number - so in order to get an exclamation mark, you need to use Char ( 33 ), and Char ( 34 ) for a quotation mark.

Strangely enough, you have used the correct Char ( 97 ) to get an "a" and not Char ( 61 ) as would be consistent with your logic.

BTW, the two characters you have received are not spaces, but control characters.

 

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.