Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1768

Re: VB 5 screen display

From Michael Cole <invalid@microsoft.com>
Newsgroups comp.lang.basic.visual.misc
Subject Re: VB 5 screen display
Date 2013-05-03 10:30 +1000
Organization A noiseless patient Spider
Message-ID <klv085$2b8$1@dont-email.me> (permalink)
References <48920a48-d284-4880-b062-8880c98e9458@googlegroups.com> <klsi7p$m94$1@dont-email.me> <1642207920389161157.524759jgroshan-pacbell.net@news.giganews.com>

Show all headers | View raw


Justin Groshan formulated the question :
> Michael Cole <invalid@microsoft.com> wrote:
>> jgroshan@gmail.com pretended :
>>> How do I display the answer to a math problem on the screen  when using
>>> VB 5? > I am looking for something similar to the print statement in Basic.
>> 
>> If you are talking IDE, Debug.Print will print to the Immediate window.
>> 
>> If you are talking a console-type app, then you should be looking at the 
>> WriteConsole API
>> 
>> Public Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA"
>> (ByVal hConsoleOutput As Long, lpBuffer As Any, ByVal
>> nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, lpReserved As 
>> Any) As Long


OK, firstly, don't start your message after a double-dash - that marks 
it as a signature for some newsreaders, and it makes it difficult to 
read and reply to.


> I know virtually nothing about vb. 

Then that would be your major problem.  Get hold of a book on it, read 
the help file, search the internet, something.

> What I am trying to accomplish is to
> write simple programs involving math problems and displaying the answer on
> the screen as you would in Basic with a print statement. Assume the
> variable is x, then the answer in basic would be ? X. How would I
> accomplish the same thing In Vb5, the only version I have access to.?

If you are more used to Basic (rather than Visual Basic) then as MikeS 
said, get a copy of QBasic - its free and downloadable.

> I recall something that said debug.print would not work in vb5. 

It definately does.  Use it and see.  Experiment.

-- 
Michael Cole

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

VB 5 screen display jgroshan@gmail.com - 2013-05-01 19:07 -0700
  Re: VB 5 screen display Michael Cole <invalid@microsoft.com> - 2013-05-02 12:18 +1000
    Re: VB 5 screen display Justin Groshan <jgroshan@pacbell.net> - 2013-05-02 00:34 -0500
      Re: VB 5 screen display Michael Cole <invalid@microsoft.com> - 2013-05-03 10:30 +1000
        Re: VB 5 screen display Justin Groshan <jgroshan@pacbell.net> - 2013-05-02 22:06 -0500
          Re: VB 5 screen display Justin Groshan <jgroshan@pacbell.net> - 2013-05-02 22:17 -0500
            Re: VB 5 screen display "DaveO" <djo@dial.pipex.com> - 2013-05-03 09:30 +0100
              Re: VB 5 screen display Justin Groshan <jgroshan@pacbell.net> - 2013-05-03 09:29 -0500
                Re: VB 5 screen display "DaveO" <djo@dial.pipex.com> - 2013-05-03 15:53 +0100
                Re: VB 5 screen display "Theo Tress" <rbk@online.de> - 2013-06-07 19:41 +0200
                Re: VB 5 screen display "DaveO" <djo@dial.pipex.com> - 2013-06-10 09:15 +0100
                Re: VB 5 screen display "Theo Tress" <rbk@online.de> - 2013-06-11 18:01 +0200
          Re: VB 5 screen display Deanna Earley <dee.earley@icode.co.uk> - 2013-05-03 09:19 +0100
            Re: VB 5 screen display Justin Groshan <jgroshan@pacbell.net> - 2013-05-03 09:29 -0500
  Re: VB 5 screen display Deanna Earley <dee.earley@icode.co.uk> - 2013-05-02 08:49 +0100
  Re: VB 5 screen display "MikeS" <misarY@gothere.ukX.com> - 2013-05-02 09:00 +0100
  Re: VB 5 screen display ralph <nt_consulting@yahoo.com> - 2013-05-02 05:11 -0500

csiph-web