Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 March 5th, 2005, 04:23 PM
Registered User
 
Join Date: Mar 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example on p80 doesn't work

The GUID example on page 80 doesn't work. It says NewGuid is not a member of guid. I suspect it is because Thearon has not indicated what must be imported to make it work. Or, perhaps it worked under 2002, but not under VB.net 2003. I tried System.Guid, but it still doesn't work. Any ideas on this?

R. W. DelPorto
 
Old March 7th, 2005, 12:35 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Page 80 of what book?
 
Old March 7th, 2005, 02:36 PM
Registered User
 
Join Date: Mar 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,
  I'm sorry, I thought this forum was all about WROX's Beginning VB.Net Databases by Thearon Willis ISBN: 0-7645-6800-0, so I didn't mention the book's title, etc. I'm a newby here. Anyway, that is the book I'm referring to. On page 80, 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. Thanks for your inquiry.

R. W. DelPorto





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
Able to Get it work !! rsrika C# 2005 0 March 8th, 2006 09:16 AM
Why this example doesn't work DietCoke ASP.NET 1.0 and 1.1 Basics 3 November 29th, 2004 01:17 AM





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