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.

Featured Replies

Oh, this is very exciting to learn! laugh.gif

Thanks to DJ, I found out that using Set Field (with anything) will remove a $ from a numeric field. Well, that got me to thinking about why it worked. And then I realised that it had a much greater implication in terms of handling mixed-data fields.

If I am dealing with a numeric field that also holds text (either because of an import from a text file or from changing a field definition), it is possible to

This is all part of the subject of data types and conversions between data types. Sorry, if a date field contains non-date information, it is all viewed as text and converting to date just wipes out the entire contents of the field. Text information entered into a date field is converted upon entry, if FM can figure out what to do (i.e. 5/5/01 would be converted to a date). To use a Set Field to enter a date:

SetField(date, "5/5/01") won't work, SetField( date, Date(5,5,2001) will, as it forces entry of data with the type date.

Remember that dates are stored internally as numbers, January 1, 0001 is 1.

-bd

using Set Field (with anything) will remove a $ from a numeric field.

Well La Retta, it worked because your field was num and that $ had been entered into the field, while if it had been enter via the format number function, the set field (fieldnum,(-1) x fieldnum) would not have worked.

Set field can be used in script while Replace, Substitute are used in Calculation (or combined with Setfied (Field, Substitute(...),):.

But I do agree with you that Setfield, along with the new Getfield are very useful

  • Author

Thanks Brent and Ugo for responding!

I

Setfield( mad.gif, Substitute "$", smile.gif)

That is the way the world goes...or at least would like it to go.

May be with a looping script. wink.gif

Glad to see you are so excited !!

Have a nice Saturday night grin.gif

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.