|
-
February 26th, 2014, 04:04 AM
#3
Re: Do while loop
 Originally Posted by salman afzal
The issue is with iCount > 5 , I just need to understand how can I get it to show if the sLT is less than 5 and if its over 5 than limits to show 5 names as maximum
read your statement out loud...
DO while NOT EOF and icount GREATER than 5..... erm... two choises here... not EOF as first and greater than 5 as second...
you want : DO while NOT EOF and NOT icount GREATER than 5
all your really missing is the brackets...
Code:
Do While Not (rsP.EOF And iCount > 5)
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|