replace not working

Archives Forums/BlitzMax Bug Reports/replace not working

Fielder(Posted 2016) [#1]
data$=currentdate()
replace (data," Jan "," Gennaio ")
replace (data," Feb "," Febbraio ")
replace (data," Mar "," Marzo ")
replace (data," May "," Maggio ")
replace (data," Apr "," Aprile ")
replace (data," Jun "," Giugno ")
replace (data," Jul "," Luglio ")
replace (data," Aug "," Agosto ")
replace (data," Sep "," Settembre ") 
replace (data," Oct "," Ottobre ")
replace (data," Nov "," Novembre ")
replace (data," Dec "," Dicembre ")
print data


the result is the same of first data


RustyKristi(Posted 2016) [#2]
Don't use data$ use dat$ instead. I think data is a reserved keyword.


degac(Posted 2016) [#3]
No you missed the obviuos

data=Replace(data," Oct "," Ottobre ")

or better, just use the OO approach

data=data.Replace(" Oct "," Ottobre ")


RustyKristi(Posted 2016) [#4]
ah sorry misread the category, I thought this was for b3d..


Fielder(Posted 2016) [#5]
Thank you Degac! (grazie)