473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

can someone help me using nested while wend,in vb6

sweetzhay
i already know how to get the output of
1
12
123
1234
12345
using while wend
and now my problem is to show the output of
1
21
321
4321
54321
using while wend with one command button and 1 label
and also
this one
using 2 labels and 1 command button need to to show in one label the even numbers
2 4 6 8 10
and the in label 2 need to show the odd numbers
1 3 6 9
hope someone can help me. thanks alot
Sep 1 '09 #1
3 2340
debasisdas
8,127 Expert 4TB
kindly post the code that you are working on.
Sep 2 '09 #2
@debasisdas
heres the code for the output
1
12
123
1234
12345

Private Sub Command1_Click()
Label1 = ""

sides = 5
rows = 1
While rows <= sides
Column = 0
While Column < rows
Column = Column + 1
Label1 = Label1 & Column
Wend
Label1 = Label1 & vbCrLf
rows = rows + 1
Wend
End Sub

so now i want to get the output of
12
21
321
4321
54321
and also this one
''''''''''''''''''''''''''''1
'''''''''''''''''''''''''12
''''''''''''''''''''''123
'''''''''''''''''''1234
''''''''''''''''12345
disregard'''' i just put it to get the right position of the numbers only the numbers.
the secret in the last one is to use double quotation" '" for the space so the more space the more double quatotion needed by still i cannot get it hope u can help me.
Sep 3 '09 #3
kadghar
1,295 Expert 1GB
well

i think you just have to start column in row, instead of zero
and use column=column-1

oh, and change the condition of the while
Sep 3 '09 #4

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

Similar topics

6
by: Baz | last post by:
Hi All, I have a problem with the above command. I have a file which is approximately 7000 lines long. I want to parse that file, extract any lines containing a certain string, and add that line...
7
by: Raphael Gluck | last post by:
Hi I've been trying to hand code my pages, after failing in a WSYWYG editor and giving up. I'm almost done with the page checking, it's just i'm having a Wend error Microsoft VBScript...
4
by: August1 | last post by:
A handful of articles have been posted requesting information on how to use these functions in addition to the time() function as the seed to generate unique groups (sets) of numbers - each group...
2
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
1
by: shank | last post by:
I'm trying to use code I found on: http://www.dmxzone.com/ShowDetail.asp?NewsId=394&offset=5 I've used it before without issue, but this time it's not working. The nested records are not being...
3
by: mslyman | last post by:
Hi, I could do with some help. I have this XML. <region> <region_code>567</region_code> <store> <store_code>345</store_code> <dept> <dept_code>32</dept_code> </dept>
3
by: Wayne Shu | last post by:
When I read the chapter of the namespace of the book C++ Primer(3e). It explain the using directive as follow: "A using directive makes the namespace member names visible as if they were declared...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.