Page 1 of 1

Reload Matrix

Posted: Thu Aug 20, 2020 12:32 pm
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.

Re: Reload Matrix

Posted: Fri Aug 21, 2020 5:04 pm
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.