4 Replies - 384 Views - Last Post: 30 January 2012 - 06:07 AM Rate Topic: -----

Topic Sponsor:

#1 cokereese  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-January 12

Hscroll/Vscroll

Posted 28 January 2012 - 06:16 PM

I wrote a short Hscroll1 comparison program below and perplexed an incorrect solution.

Hscroll1.min = 0
hscroll1.max = 15000
hscroll1.value = hscroll1.max

If hscroll1.value <> hscroll1.max then
   msgbox "Not Matched"
Else
   msgbox = "Matched"
End If


Could you able help my simple problem to be corrected?

This post has been edited by Atli: 28 January 2012 - 06:18 PM
Reason for edit:: Please use [code] tags when posting code!

Is This A Good Question/Topic? 0
  • +

Replies To: Hscroll/Vscroll

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: Hscroll/Vscroll

Posted 29 January 2012 - 01:12 AM

And would you like to elaborate on what the incorrect solution is?

What do you expect to happen, and what happens?

Did you actually run your code, using Full Compile? You would find that Msgbox = "Matched" is invalid code.

This post has been edited by maj3091: 29 January 2012 - 01:15 AM

Was This Post Helpful? 0
  • +
  • -

#3 cokereese  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-January 12

Re: Hscroll/Vscroll

Posted 29 January 2012 - 07:48 PM

Hi, thanks for your willing help. I'm a new VB6 beginner, but I familiarize textual-based BASIC programming language.

In VB6, how could I find a "Full Complile" feature?
Was This Post Helpful? 0
  • +
  • -

#4 DimitriV  Icon User is offline

  • It's been so long, without this feeling
  • member icon

Reputation: 513
  • View blog
  • Posts: 2,533
  • Joined: 24-July 11

Re: Hscroll/Vscroll

Posted 29 January 2012 - 08:14 PM

You may want to look here:
http://www.devx.com/...hemax/Tip/18283

MsgBox works like this:
MsgBox(<prompt> - String - Required, <buttons> - optional, <title> - string also optional)

Was This Post Helpful? 0
  • +
  • -

#5 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: Hscroll/Vscroll

Posted 30 January 2012 - 06:07 AM

I appreciate you new and didn't mean to come across like I was having a go at you.

"Run with compile" can be found under the Run menu or by pressing CTRL+F5.

It will basically compile your code before running, thus highlighting syntax errors, where as the standard run, will only identify an error when it reaches the line in question that has an error.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1