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.

GetRowData ( fieldName ; recordNumber )

Featured Replies

So I discovered that the new FM8 function:GetNthRecord ( fieldName ; recordNumber ) there was into FM7 too ! :)

Its name is: GetRowData ( fieldName ; recordNumber )

But it do nothing, neither appears between the functions list.

If you enter a calc with this, FM7 accept the function !

If you open with FM8 you'll see the new one ! ???

So (for now I think, I didn't test), if you write a custom function with FM7 Dev around this , when you'll open with 8 it should work :

  • Author

Ok

---------tested--------------------

Now I can make a custom function with FM7 Dev and look how it works with FM8 trial :laugh:

  • 2 weeks later...

Daniele, how on earth did you figure out that this function exists in FM 7?

Create a file in 8 that uses the GetNthRecord function, then open it in 7. You will see GetRowData in its place.

Nice easter egg! ;) Too bad it couldn't have been found earlier.

But it doesn't behave properly in 7, does it? In my test it returns the value of the current record, not the Nth.

No. Apparently the concept was not fully fleshed when 7 was released. I think Daniele's point was that you can use it in 7 to be prepared for use in 8. I do not have veresion 8, but I can make a sample file which includes GetNthRecord for someone else to use in 8. That is quite nifty.

  • Author

"But it do nothing, neither appears between the functions list."

As I said this function IS into FM7 but makes nothing!

So it seems not a great discovery...

but if you own FM7 Developer, than you can make a custom function with this new function.

When you'll open that file with FM8 (not the advanced ! the trial is just good !) the custom function will run !!

Edited by Guest
other words to explain better

So, if you're like me, and very poor at Custom Functions, what exactly would one need to do to use this?

  • 2 weeks later...
  • Author

Hi

I made this file (as an example) with FM7 Dev;

there is a custom function:

Field'sAllData(field;number)


Let([

next = number + 1

];

Case(

number < Get ( FoundCount )  ; GetRowData ( field ; number ) & "¶" & Field'sAllData ( field; next );

number = Get ( FoundCount )  ; GetRowData ( field ; number );

""

)

)

This file do not work with FM7...

but it will work with FM8 !

GetRowData.zip

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.