Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2005, 03:30 PM
Registered User
 
Join Date: Mar 2005
Location: Erie, PA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example on page 80

On page 80, of WROX's Beginning VB.Net Databases by Thearon Willis ISBN: 0-7645-6800-0, they have the code:
Public Class Form1
    Inherits System.Windows.Forms.Form
    Private Sub btnGenerate_Click(ByVal sender As System.Object, _
      ByVal e As System.EventArgs) Handles btnGenerate.Click
        txtGuid.Text = guid.newGuid.tostring.toupper
    End Sub
End Class

And I get the error:
D:\VB\guid\Form1.vb(73) : error BC30456: 'newGuid' is not a member of 'guid'.

I'm pretty sure that means I have to Import something, but I can't seem to figure out what. I tried:
Imports System.Guid
Imports Microsoft.Win32.SystemEvents

but that doesn't fix the problem. I'm running under VS.Net 2003.
R. W. DelPorto

R. W. DelPorto
Reply With Quote
  #2 (permalink)  
Old March 10th, 2005, 06:48 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

R.W.

There is no namespaces that need to be imported. I cut and pasted your code into a project and it ran fine. There's something wrong with your VS setup or environment. If you're using your computer at work then please consult with your Network Admin or contact Microsoft.

Thearon
Reply With Quote
  #3 (permalink)  
Old March 10th, 2005, 12:28 PM
Registered User
 
Join Date: Mar 2005
Location: Erie, PA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thearon,
  Thank you for your reply. After receiving it, on a hunch, I tried this code under VS 2002. It DOES work fine there. However it does NOT work with VS 2003, at least on my system. Before I go and talk to my Network folks, did you try it on VS 2003? I have found several other things that work differently or not at all on VS 2003.

Ron DelPorto

R. W. DelPorto
Reply With Quote
  #4 (permalink)  
Old March 10th, 2005, 08:13 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Ron,

Yes. I developed it on VS 2003 and ran my test this morning with your code on VS 2003. There's gotta be something in your configuration stopping it from working the way it should.

Good luck. I'm sorry I couldn't be more help.

Thearon
Reply With Quote
  #5 (permalink)  
Old March 14th, 2005, 01:54 PM
Registered User
 
Join Date: Mar 2005
Location: Erie, PA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thearon,
  Thanks AGAIN for your help. I DID contact my network folks and found something interesting. Just thought I'd share it in case someone else encounters the problem. The problem actually stems from the fact that I named my project guid, so when VB.Net was giving me the build error Newguid is not a member of guid, it was referring to my project, guid, not the Structure, guid, which is a member of System. I changed the name of my project and Bingo, it worked. I probably should have thought of that, but .... :(

Ron

R. W. DelPorto
Reply With Quote
  #6 (permalink)  
Old March 15th, 2005, 06:16 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Ron,

I'm glad you discovered the cause of the problem and on your way again.

Thearon
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Split a string by 80 chars, but not during a word 2BOrNot2B XSLT 4 December 5th, 2008 04:13 AM
edit 80 port number AristotleYu ASP.NET 2.0 Basics 0 June 22nd, 2006 11:36 AM
An error occurred while validating. HRESULT = '80 Medes Excel VBA 0 May 10th, 2006 02:01 AM



All times are GMT -4. The time now is 11:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.