Reload Matrix

Main discussion forum
Post Reply
markbolton
Newbie
Newbie
Posts: 3
Joined: Sun May 01, 2016 8:18 pm

Reload Matrix

Post by markbolton »

Is it possible to reload a matrix grid during the execution of a script. I would like to be able to change the sort order of a matrix and then redisplay the matrix showing the new sort order, without leaving the execution of the script.

Thanks in advance for any advice.

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: Reload Matrix

Post by jtclipper »

I am afraid not, the only manipulation you can do in a script is to use a specific matrix with its ordinal number and apply it to a text variable

As an example this will use matrix no 8 to format the artist field, (the matrix list is zero based)

Code: Select all

program test;

begin

  if not tg_Init then exit;

  repeat
    tg_setField( 'Artist', sys_ApplyMatrix( 8, tg_getField( 'Artist') ) );

  until not tg_Skip;

end.

Post Reply