Skip 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.

Inserting a value on an appropriate line

Featured Replies

Hi Guys,

 

I'm trying to create a Virtual list, so far it seems to be working great. I populate a global variable called $$MyData and display the results via a VL.

 

Is it possible to to inset a value into line 24 of $MyData using one of the commands or do I have to write a custom function to do this. I've seen there are a couple of custom functions which can extract a line out based on a line number, but Im interested if my $counter says 24, the value goes into line 24 of $$MyData.

 

Many thanks

Jalz

but Im interested if my $counter says 24, the value goes into line 24 of $$MyData.

 

The nice thing about Custom Functions is that you can write them yourself, like

Let ( [
  lineNumber = Int ( GetAsNumber ( lineNumber ) ) ;
  newLast = ValueCount ( theList ) + 1
  ] ; 
  Case ( 
    lineNumber < 1 ; "Only positive integers for the line number, please!" ;
    lineNumber > newLast ; "Out of bounds error" ;
    lineNumber = 1 ; List ( newLine ; theList ) ;
    lineNumber = newLast ; List ( theList ; newLine ) ;
    Replace ( theList ; Position ( theList ; ¶ ; 1 ; lineNumber - 1 ) ; 0 ; ¶ & newLine )
  )
)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.