mIRC Home    About    Download    Register    News    Help

Print Thread
#117652 18/04/05 03:26 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
I'm working on a web browser and the combo edit box i use for entering urls is causing me a headache. When i click go, the url is added to the drop list (/did -a $dname blah blah). However, If i enter the same url again, its adds the url to the drop list a second time. How do i prevent that from happening?

Other than that everything works pretty well.

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
if (!$didwm($dname, <id of combo box>, $did(<id of url editbox>))) { did -a $dname <id of combo box> $did(<id of url editbox>) }


New username: hixxy
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
that did the trick thank you.


Link Copied to Clipboard