Can I use the replace function on all the elements of the table
Suppose I have the table
agh
0p9
pl0
0lw
Three different columns
I want to replace the strings "0" to NULL or a default value
I am trying to use the replace function in the foreach function
function rep(input)
t=string.replace(input,"0",nil)
end;
output=table.foreachi(input,rep)
I am finding difficulty using this ..
Thanks
Suppose I have the table
agh
0p9
pl0
0lw
Three different columns
I want to replace the strings "0" to NULL or a default value
I am trying to use the replace function in the foreach function
function rep(input)
t=string.replace(input,"0",nil)
end;
output=table.foreachi(input,rep)
I am finding difficulty using this ..
Thanks