I think I know what you are talking about, but that doesn't help because I
need an if statement in the formula to can test the current lin with IsNan()
so I can skip it with a nop (no operation).


On 2/28/2022 at 6:10 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote:


 No, I mean in the Lua script. The formula receives the lin and col as
parameters. See the examples.



Em dom., 27 de fev. de 2022 às 16:17, Andrew Robinson <arobinso...@cox.net>
escreveu:




I apologize, I didn't mean to say it wasn't useful, only that it wasn't useful
if you require more than one title line.




The prototype for IupMatrixSetFormula only has a parameter for col and nothing
for lin. Is the following a typo in the HTML documentation for IUP - Version
3.30?:

void IupMatrixSetFormula(Ihandle* ih, int
 col, const char* formula, const char*
 init); [in C]
iup.MatrixSetFormula(ih:
 ihandle, col: number, formula: string,
 [init: string]) [in Lua]
or
 ih:SetFormula(col: number,
 formula: string, [init: string]) [in
 Lua]








On 2/27/2022 at 10:13 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote:


> "so it's not a useful function"



  I think if you read the documentation carefully you will see that it is a
very useful function...




  Also you will find out that the formula receives two parameters lin and col,
so you can test the col number and return the contents you actually want in
the UNITS cell. Then maybe you're not stuck after all...




Scuri






Em qui., 24 de fev. de 2022 às 20:20, Andrew Robinson <arobinso...@cox.net>
escreveu:




Ola Antonio,




I have the following dialog:









I would like to use IupMatrixSetFormula to change values when I select between
S.I., CGS, and Imperial units but IupMatrixSetFormula cannot be restricted to
just the rows below the UNITS row so it's not a useful function. Is there a
way to restrict which rows IupMatrixSetFormula or am I stuck with doing it
manually, cell-by-cell?




Thanks,

Andrew
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to