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.

Naming Conventions

Featured Replies

I have noticed that some of you name global fields gfieldname. I was wondering if there is an entire naming convention standard usually or often used by FM developers. I am just getting back into development after years and would find this very useful. Whatever we used in the olden days for COBOL etc. wouldn't quite cut it.

Thanks, regards, and yes I'm old, Kay ;-)

quote:

Originally posted by kattatonic:

I have noticed that some of you name global fields gfieldname. I was wondering if there is an entire naming convention standard usually or often used by FM developers. I am just getting back into development after years and would find this very useful. Whatever we used in the olden days for COBOL etc. wouldn't quite cut it.


Theories abound, but no standard has been set forth by anyone in the industry.

I originally started with the standard Hungarian notation, but found its short, more cryptic names did not suit FMP that well.

The "g" notation for global fields is fine, but they end up getting stuck amongst normal fields.

I use the following:

User input fields are named normally

Global fields are named _GlobalField

Calculations are named [calc] CalcField

Summary fields are named [sum] SummaryField

Display calcs are named [disp] DisplayCalculation

And so on...

This is nice becuase it not only allows sorting by name, but also by a category.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.database-resources.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

The other thing that I do in my development is to start field name with a 3 to 4 character initial file designator. This can be particularly helpful identifying the originating file of a field in a multi-file solution.

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.