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 recently looked at SeedCodes new calender and it got me to thinking. Variables can be powerful and it reminded me of a project I did written in Lua using lua tables. I guess my questions are, is there any good documentation on Filemaker's variables? Can you set a specific index for a variable ($var[1], $var[2], similar to a lua table)? Is there a limit to the length that a variable can be?

This could be used to do some amazing things (SeedCodes Calender is pretty amazing but have not pulled apart the free copy yet) but do not yet have a full understanding of how variablies behave in this context.

I hope at least part of this makes sense.

Well; no. Big. What is your question?

is there any good documentation on Filemaker's variables?

http://www.filemaker.com/help/html/scripts_ref1.36.15.html#1044136

Can you set a specific index for a variable ($var[1], $var[2], similar to a lua table)?

Yes, you can use specific indexes. Assign to $var[index] at will. The indexes are treated as FileMaker repetitions. Unlike FileMaker field repetitions, you don't need to allocate/setup these variable indexes or repetitions in advance of using them.

Is there a limit to the length that a variable can be?

Do you mean the length of the variable name or the length of the variable's value?

The variable name has the same naming restrictions as a FileMaker field name (max length is 100 characters).

As far as I know the variable's value has the same limits as a text field.

Edited by Guest

Keep in mind though that the variable repetitions are not true arrays.

Keep in mind though that the variable repetitions are not true arrays.

Meaning what? They are sparse arrays, you can have $var[1] and $var[21] and $var[102] and $var[-64] with no other values. But what do you mean?

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.