This is a discussion on Problem in visual basic......???? within the Visual Basic Tutorials forums, part of the Articles and Tutorials category; I want to print the numbers 1 to 99. i have written the following code: private sub cmdCommand1_click() dim i ...
|
|||||||
|
|||
|
Problem in visual basic......????
I want to print the numbers 1 to 99.
i have written the following code: private sub cmdCommand1_click() dim i as integer for i = 1 to 99 print i next i end sub What's wrong with this coding? The output of above is all the numbers from 1 to 16? |
| Sponsored Links |
|
|||
|
where do you want to print, on the form or to the printer. If on the form, this code is correct and working fine. If you want to print on the printer then the code should be
Dim i As Integer For i = 1 To 99 Printer.Print i next i Printer.EndDoc try this and revert me if this is want you wanted |
|
|||
|
its working fine buddy
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Basic : Make the Transition from Traditional Visual Basic Error Handling to the Object-Oriented Model in .NET | techguru | Visual Basic Tutorials | 0 | 08-29-2005 07:27 AM |
| Visual Basic : Taking the Visual out of Visual Basic | techguru | Visual Basic Tutorials | 0 | 08-29-2005 03:27 AM |
| Visual Basic : Security Concerns for Visual Basic .NET and Visual C# .NET Programmers | techguru | Visual Basic Tutorials | 0 | 08-29-2005 01:27 AM |
| Visual Basic : Discover a Series of Fortunate Event Handlers in Visual Basic | techguru | Visual Basic Tutorials | 0 | 08-28-2005 05:26 PM |
| Visual Basic : A Primer on Creating Type-Safe References to Methods in Visual Basic .NET | techguru | Visual Basic Tutorials | 0 | 08-27-2005 11:26 PM |