Hi,
I am stuck with REITERATION. I can't find anything wrong with this set of codes but it won't work.
When I used IF...END for each field, it works. I have about 20 fields to reiterate, hence not economical to apply IF END for every field.Code:local tMyStringValue = {sEmail,sPhone1,sPhone2,sHomeAddress,sHomeCity}; -- step through fields table for nMyValueIndex, sMyStringValue in tMyStringValue do -- Check for blanks and change it to "-" if sMyStringValue == "" or sMyStringValue==nil then sMyStringValue = " - "; end end
What could possibly be wrong with the Code above?
Thanks

