Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2006, 02:53 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I need Help!!!

OK, i just got into VB. Im using VB6 software, but learning from a VB5 Wrox book for beginners. I can follow along quite well, it's just when i have to right the code to exe the project i get syntax errors. Im following the book right on the money. I triple check word for word in the book to mine.

Here is an example: This is what written in the book. I run it, and i get syntax error. WHY!! It's copied word for word.

MessageBox.Show("Value of intNumber + 1 = " & intNumber, "Variables")

Thanks to anyone for suggetions...

 
Old January 9th, 2006, 03:54 AM
Registered User
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI
Use
MSGBOX "Value of intNumber + 1 = " & intNumber, "Variables"
instead of code you are using in VB6. It will display a
message box.
Hope your problem will be solved

 
Old January 9th, 2006, 04:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

messagebox.show is a .NET statement. Are you sure you are using a VB5 book :)

PS before making the exe, run your project with a full compile (Ctrl+F5), that will find compilation errors right away

Marco
 
Old January 16th, 2006, 05:20 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default



Hi,

I think the book you are referring is not vb 5. i think it's for .net & modify the code as herry_basoya mentioned if you want to run this in vb 6.

nalla












Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.