Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / July 2008



Tip: Looking for answers? Try searching our database.

What is wrong with this code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zerocostproduct@gmail.com - 15 Jul 2008 04:35 GMT
All,
Been a long time since I messed with VB my brother-in-law is taking a
intro programming class
We wrote the following code but he's getting an error  at the
calculation line.
I no longer have VB and looking with my rusty eyes I don't see the
issue.

He's trying to capture seperate values from 2 different txtbox and
display results of calculation in a third txtbox/

Can anyone help?

Private Sub CalulateBtn_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CalulateBtn.Click
Dim CalulateBtn As Action (Of Textbox3.value * txtInput.value)
End Sub
BeastFish - 15 Jul 2008 07:40 GMT
That's not VB (not VB5 or VB6).  This group is for pre-dotnet VB (VB5 &
VB6).  There are different groups for dotnet VB because the coding is
different and VB6 code likely won't work with VB.net and vice versa.

For VB.net questions, try in the dotnet groups like
microsoft.public.dotnet.languages.vb

> All,
> Been a long time since I messed with VB my brother-in-law is taking a
[quoted text clipped - 13 lines]
> Dim CalulateBtn As Action (Of Textbox3.value * txtInput.value)
> End Sub
marks542004@yahoo.com - 17 Jul 2008 00:35 GMT
On Jul 14, 10:35 pm, zerocostprod...@gmail.com wrote:
> All,
> Been a long time since I messed with VB my brother-in-law is taking a
[quoted text clipped - 13 lines]
> Dim CalulateBtn As Action (Of Textbox3.value * txtInput.value)
> End Sub

doesnt look like VB6 :( so I cant help.
Depending on the error I would look at converting the text box value
to a numeric type before trying to multiply them .
look at cvtxxx command like cvtint
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.