| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Feb 21, 2004 1:28 pm Post subject: @Match function of VDS 4 |
|
|
Is there a way to make the @ match function more accurate?
I have a list of websites and some of the domain names only differ by one of two letters.
Is there a way to make @match only highlight the EXACT match? |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 21, 2004 1:33 pm Post subject: |
|
|
You can use @equal() with the EXACT param to test a match.
| Code: |
if @match(List1, %%searchstring)
if @equal(@item(List1), %%searchstring, EXACT)
INFO We found it!
end
end
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 21, 2004 1:38 pm Post subject: |
|
|
BTW, you can use a hidden list to do your search
if you don't want the visible list hilighted. Then use
LIST SEEK on the visible list if it IS an exact match.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Mon Feb 23, 2004 11:40 am Post subject: |
|
|
Thanks for the code,
But is there a way to make it case insencertive?
It seems to remove dupes only if case is a match too. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 23, 2004 2:47 pm Post subject: |
|
|
Just remove the EXACT parameter in @equal() - that's
what makes it case sensitive.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|