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

I was just wondering what those function could be used for!

Regards,

___Paolo

Design??

Here is what the online help says, RTFM for more.

Design functions return information about the structure of any specified database that is currently open on your computer. For example, you could determine the names of all the layouts or fields in an open database.

Important Parameters should be in quotes (""), or you can specify a field name for any parameter and return information about the item typed in that field. In this case, do not put the fieldname parameter in quotes.

For example, LayoutNames ("Clients") always returns the names of the layouts in the Clients file. If you have a field named File, LayoutNames (File) returns the names of the layouts in the Clients file if you type Clients in the File field.

Copyright

  • Author

Ok, I know what they do!!

But I don't know what they could be used for!

They seem useless. But it they exist then they must have a purpose!

Paolo

Hi Paolo,

Design functions can also be used in Value Lists which can be attached to globals to be used in scripting. They aren't used that often, but when you need them, they are quite handy! smile.gif

They end up as a multiline and you can run your script on the first line, delete the first line and loop until the global is blank.

And with >= 5.5, they can be used in conjunction with GetField.

An example of a recent solution using FileNames can be found at:

Select & Copy Fields to a New Record

LaRetta

  • Author

Interesting, thank you!

Hi Paolo

There are several uses for these functions. Probably the most notably is getting information about a database using these functions.

For a couple of files that have used these functions (there are many files available at the usual sites for demos and tip and trick files), go to:

SoftDoc102 by Bob Weaver URL Sample Files Forums.

Status in Design by: John Mark Osborne URL

www.databasepros.com cool.gif

P.S.

I've used some of these design functions as part of a file, such as layout names and field names

Here is an excellent example of this type of use.

Status Functions by Bob Cusick URL http://www.fmfiles.com/tnt8.html

It is in FM3/4 format and will have to be converted to 5/6

HTH

Lee smirk.gif

  • Author

One interesting thing to do with design function would be to create an interface that let the user navigate trought layouts without using the standard layout menu.

For people like me, that doesn't want users to move freely between layouts, it's helpful.

Every layout is removed from the layout menu, but the developer have access to the "navigation" interface that let him switch trought layouts.

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.