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


Joined: 01 May 2003 Posts: 61
|
Posted: Mon Jun 30, 2003 6:15 pm Post subject: explain this weird list thing |
|
|
ok i know this is going to sound so odd but here goes
| Code: |
%%TRASH = @MATCH(list1,%%BLK_BALL_SPAMER)
%b = @INDEX(list1)
net pop3,logon,@dlgtext(edit1)
net pop3,delmail,@Succ(%b)
|
i seem to get 2 different responses from vds
sometimes the first item on the list is returned as 0
ok, that is what should happen, right?
now sometimes if there is lots of items in list1
the return for the first item is 1
any ideas why and how to fix this?
thanks,
harry |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Jun 30, 2003 8:01 pm Post subject: |
|
|
I don't think that there should be a problem there. Are you sure for instance that you've reset the pointer
to 0 each time. @match() will only search from current pointer position and forward..
Please elaborate a bit more on the details. Perhaps you could post a small complete working example which
could show this behavior??
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Mon Jun 30, 2003 9:19 pm Post subject: |
|
|
Dr.D
the list1 is reloaded every time it is scaned for a match,
the progy is about 936 lines way big for the fourm..but a copy could be emailed ..
What i think is happening(it says here in small print)
is the vdsdll -inet returns 1 as the first list item (headder)
normally vds has 0 as the first item in a list
somehow these are getting mixed up.
say i have 15 items in a list
if a match is made in the middle (not item first or last)
the return %b will be correct the 3rd item willl be 3( not 2 as normally returned by vds)
if the match is made on item last the return is 14 and
item first is 0; @succ(%B) will be correct
tia
harry now with less hair. |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Jun 30, 2003 9:57 pm Post subject: |
|
|
You're not creating a SORTED list or something?? That could arrange your items differently from what you expect.
I suggest that you try to put a LIST SAVEFILE command in your prog - then you can inspect the file
output to check if something is different from what you expect.
I use VDS lists big-time, and I've never seen VDS return anything but position 0 for the first item.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Tue Jul 01, 2003 12:02 am Post subject: |
|
|
You're not creating a SORTED list or something?............
no i take what comes from the server and put it(line) 1 by 1 into
list1
I suggest that you try to put a LIST SAVEFILE........
yeah that and put it on the clipboard or @info or in a text element
or even a status element those all work to see output
I've never seen VDS return anything but position 0 for the first item.............
yeah, me too since vds2.2 its always been true thats why i'm
soo befuddled but i checked this out on the box at home & work
sameo sameo ..
harry
[/i] |
|
| Back to top |
|
 |
|