Skip to content
MSN

abt remove in dialogs

A TG007 community discussion started by samooh_2003.

Discussion 12 posts
Page 1 of 1
Open
Topic #7107 · 12 published posts · 1,347 views

plz i am trying to remove some data from the text file from dialog but for some reason wont be removed i got the data n the list in the dialog when i tried to remove didnt remove i replaced the remove code with echo to c if it get the data from the list right and the echo was perfect so plz i need help how may i remove it ?! the id for the list is 3 and to remove i am using

 

 

 

write -dl $+ $read(text/filename.txt, w, * $+ $did(3).seltext $+ *) text/filename.txt

'

 

but nothing 've been removed if can i add any more informations to help i am ready

 

 

2- how may i refresh the list after removing or addin any data in added i did but not refresh just added to list also

 

did -a dialogname 3 name

 

 

and working good and the data 've been added to the list but may i refresh the list after removing or addin ?! and how can i remove waittin for reply and thx 4 help

try write -dls

the same

write -ds $+ $did(3).seltext text/filename.txt

 

I think that'll work

working good .. thx alot shane :thumb: wt about refreshin the list after addin or removin ?!

umm...

try

did -r dialogname id
set %f.line 1
set %f.tline $lines(filename.txt)
:read
if (%f.line =< %f.tline) { did -a dialogname id $read(filename.txt,%f.line) | goto read }
if (%f.line => %f.tline) { return }

 

don't know if that'll work, can't think right atm, been up way too long, but if that doesn't work, i'll get something tomorrow sometime

write -ds $+ $did(3).seltext text/filename.txt
loadbuf -ro $dname <idhere> text/filename.txt

 

The "loadbuf -ro" command will clear the specified id, and add the text from specified document to the id :)

done and working warrior :D thx 4 help and thanks for shanespen 4 ur help :D

lol, welcome

just notso good with dialogs, myself -.-'

shane really thx all of us no so good in all codes so we are trying and u helped me :D so thx and we are gettin more :P

about remove i i remove 1st time working well and gettin new list but if i tried to remove 2nd cant be removed wy?

huh wt wt 've to do with the remove should close the dialog every time if i want to remove more than one data , i removed one and couldnt remove more untill i close the dialog and open it again