Goto Position=Top while not($_eol) $_txt1 = $d_latitude $_txt2 = $d_longitude $_txt3 = Quote($d_name) $_txt4 = Quote(left($d_container,1)) $result = TextOut("c:\temp\data.csv","none","comma") # Just in case file permission error or something test for error IF Left($result,7) = "*Error*" Pause Msg=$result Cancel EndIf Goto position=next Endwhile |