Ok. Do you know C ? I presume you don’t known enough the target language yet (Xojo), but it’s essential that you know the source language ( C ) when doing language translations.
No, it’s the other way around for me. I know Xojo pretty well but I don’t know C very well.
As I understand it, in a For loop in C, there are three parameters: the starting value, the end condition, and the increment. In this case, the increment, u=pred[u], is a function of it’s current value, so a standard XOJO For…Next loop probably is not going to work. So I’m thinking that either a While…Wend or Do…Loop will have to be used here.
My apologies about not knowing to put the code in [ code ] blocks. Let me try again…
Then what is it?
If it is a C-function then you need to know what it does…
If it is a function defined in the C program … same thing (it just might be more complicated)