Hi,
I've a function which receive a table.
The program give an error (too much files open because I call this function many times)
It seems that disc_Table is the original table and not a local variable which disappears every time the function ends.
If before return s I write this sentence: disc_table.close I'm closing the principal Table.
Can I send a variable as copy from another?
In Delphi it was by reference or by value.
Thank you very much in advance for your help.
Cheers
I've a function which receive a table.
B4X:
sub Filtrar_Tabla(disc_table as sql) as string
Dim S as string
.
.
.
.
.
Return s
end sub
The program give an error (too much files open because I call this function many times)
It seems that disc_Table is the original table and not a local variable which disappears every time the function ends.
If before return s I write this sentence: disc_table.close I'm closing the principal Table.
Can I send a variable as copy from another?
In Delphi it was by reference or by value.
Thank you very much in advance for your help.
Cheers
Last edited: