excel - Powerbuilder Syntax for dw string replacement -


i'm importing csv file problem csv file extracted different program (w/c not control). excel file saved csv when open in text/notepad. shows ex.

name;gender;age;address1;address2

sid;m;100;44 lowave st.;pque vill

it used semi colon not comma

now ask users open in excel , use delimiter options make comma separated know still ask way automate process.

now im getting ready request thinking of importing excel file single column datawindow parse each row find ";" , replace() "," in while manner, save csv afterwards.

my question have replace char per char using while loop or there better way?

thanks lot.

filereadex() file string variable, global replace (pfc has 1 if don't already) semicolons tabs, , importstring(). (assumes data has no tabs or semicolons.)

or read file, parse , load insertrow() , setitem().

good luck,

terry


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -