igorrino
29th May 2008, 18:43
The problem is that i insert a text field of 300 characters in a text, my intention is to store data in the tttxt010 but this function only save the data in the tttxt001. Not save anything in the ttxt002 and ttxt010
function crear.texto(domain tcmcs.s300m texto)
{
extern domain tttxt.buf test
extern string nom.fichero(100)
extern long fichero
extern string comando(25)
extern long t
extern long txt.name
domain tcmcs.str17 kw1
domain tcmcs.str17 kw2
domain tcmcs.str17 kw3
domain tcmcs.str17 kw4
kw1 = "Cliente"
kw2 = strip$(shiftl$(tcxco907.cuno))
nom.fichero= "f:\erpln\tmp\" & str$(pid) & ".txt"
texto = strip$(shiftl$(texto))
texto="hola"
fichero = seq.open(nom.fichero,"w")
seq.puts(strip$(shiftl$(texto)),fichero)
seq.close(fichero)
|t = text.write("txt.name", strip$(shiftl$(tcxco907.clan)), kw1, kw2, kw3, kw4, "text", "text",nom.fichero)
t = text.write("txt.name", "5", kw1, kw2, kw3, kw4, "text", "text",nom.fichero)
texto=strip$(shiftl$(texto))
fichero = file.rm(nom.fichero)
}
function crear.texto(domain tcmcs.s300m texto)
{
extern domain tttxt.buf test
extern string nom.fichero(100)
extern long fichero
extern string comando(25)
extern long t
extern long txt.name
domain tcmcs.str17 kw1
domain tcmcs.str17 kw2
domain tcmcs.str17 kw3
domain tcmcs.str17 kw4
kw1 = "Cliente"
kw2 = strip$(shiftl$(tcxco907.cuno))
nom.fichero= "f:\erpln\tmp\" & str$(pid) & ".txt"
texto = strip$(shiftl$(texto))
texto="hola"
fichero = seq.open(nom.fichero,"w")
seq.puts(strip$(shiftl$(texto)),fichero)
seq.close(fichero)
|t = text.write("txt.name", strip$(shiftl$(tcxco907.clan)), kw1, kw2, kw3, kw4, "text", "text",nom.fichero)
t = text.write("txt.name", "5", kw1, kw2, kw3, kw4, "text", "text",nom.fichero)
texto=strip$(shiftl$(texto))
fichero = file.rm(nom.fichero)
}