Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix
This is the forum to discuss the Wrox book Beginning Dynamic Websites: with ASP.NET Web Matrix by Dave Sussman, James Greenwood, Alex Homer, Colt Kwong, John M. West; ISBN: 9780764543746
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix 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 February 13th, 2007, 07:09 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I can't even get snake to run

I have entered the first bit of code as follows -

Sub Button1_Click(sender As Object, e As EventArgs)

  Label3.Visible = False
  Label1.Text = Int(Rnd() * 6) + 1
  Label2.Text = Int(Rnd() * 6) + 1
  If Label1.Text = "1" And Label2.Text = "1" Then
    Label4.Text = 0
    Label3.Visible = True
  Else
    Label4.Text = CInt(Label4.Text) + _
                  CInt(Label1.Text) + CInt(Label2.Text)
  End If

End Sub


This is my first time. I am receiving an error in Line 16.

What am I doing wrong? [email protected]

thanks,

Michael






Similar Threads
Thread Thread Starter Forum Replies Last Post
how create game snake? mamandis Beginning VB 6 13 January 4th, 2008 10:47 AM
How can I run or not run Google AD in my ASP.NET w mycwcgr ASP.NET 2.0 Professional 0 November 5th, 2007 07:18 AM
SNAKE AND LADDER GAME saptarshi Pro VB Databases 1 January 24th, 2007 11:31 AM
SNAKE AND LADDER GAME saptarshi Beginning VB 6 0 January 24th, 2007 10:57 AM





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