470,596 Members | 1,574 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

please help with movenext

26
hey
i need some help in asp (vbscript) :
i need something to be done in a way that i don't really understand
i need my recordset object's pointer to be at a specific point (a parameter)
and from there to take the stuff i need from that record and move next in a for loop

something like this

change pointer to num
for i =nevermind to nevermind
response.write ("<img src=showimage.asp?imgid=" & rs.fields("id") & ">")
rs.movenext
next

what should i do to make this work (and what's the change to poiner option)
thanks
Sep 12 '07 #1
1 1310
jhardman
3,406 Expert 2GB
your method looks good. Basically you want to use
Expand|Select|Wrap|Line Numbers
  1. rs.move num 'num is the number of places you want to move
  2. for i 'etc
I usually put rs.movenext inside do...loops since you can say "do until rs.eof" and that will get you past most errors you will encounter. in your case, you cou;ld say "do until rs.eof OR i = 12" etc. Does this make sense?

Jared
Sep 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Gennadiy Tit | last post: by
4 posts views Thread by dave | last post: by
1 post views Thread by LedZep | last post: by
5 posts views Thread by ukjock | last post: by
8 posts views Thread by luis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.