Make Multiplication Syntax?

Jan 29, 2010

This is part of a calculator program. I first part I sort by num and sign using a multitude of commandbuttons with no parenthesis.This program below is part of the second part. I have three more subroutines for /, +,- respectively.The + and - work correctly but * and / do not.I think it is in the line: numop(m) = g * h Is there something I am doing wrong wth the syntax in multiplication?

Public str, sign(100), numstr(100) As String
Public num1lock(100), m, n As Integer
Public ans, num(100), numop(100), g, h As Long


[code].....

View 4 Replies


ADVERTISEMENT

Make A Multiplication And Sum Table Only Form 1 To 12?

Oct 29, 2010

i'm trying to make a multiplication and sum table only form 1 to 12. I get all kind of error I don't know what to do

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numMulti, numSum, tCounter, multiSum As Integer

[Code].....

View 5 Replies

Make Make Syntax Highlighting And Keyboard Behavior Identical For C# In Visual Studio 2008?

Aug 25, 2010

Types have their own color (cyan by default).Enter completes the auto-complete suggestion.

View 1 Replies

Make A Syntax Highlighters?

Mar 17, 2011

I making a html editor, how to make a syntax highlighters?

View 2 Replies

Make Syntax Access IIf?

Dec 4, 2009

have about 57 possible termination codes that if present in Action Reason I will need to pass in Action_Start_Date otherwise it should be empty.I got it this far this will bring in the Action_Start_Date if Action_Reason is s present. But when I add the OR syntax as you see on the second line it says syntax error

IIf ((Records("Child").Fields("Action_Reason") <> "07"),"",Records("Child").Field("Action_Start_Date"))
Or((Records("Child").Fields("Action_Reason") <>

[code].....

View 10 Replies

Make A Syntax Highlighter Such As Notepad++?

Dec 3, 2009

Using VB 2008r 2010 is there somehow I could make a syntax highlighter such as Notepad++?But maybe more simpler for only HTML, PHP and CSS? Or is there a plug-in or something you can download and add in your app?

View 3 Replies

Make The Seconds Part Of The Syntax?

Oct 26, 2010

shutdown -s t 60shuts down the PC in 1 minute. I would like to make the seconds part of the syntax variable as:Dim varSec as integer Process.start(shutdown s t & varSec)But it doesnt work nor produces errors. Can it be done this way?

View 3 Replies

VB 2008 Make Express Syntax?

Jan 9, 2011

My question is about syntax.bviously every language has set of rules for how to write or speak specific language.My problem is that I don't know the rules for VB. Let say that I want to write this sentence in VB compiler: aligator with big mouth is coming to your house. I know the order: first noun, then verb, and argument in brackets. But when I want to write this aligator

View 12 Replies

VS 2010 : Make A Syntax Higlighter For HTML/CSS/PHP Editor?

May 21, 2012

I'm trying to make a syntax higlighter for my HTML/CSS/PHP editor and it's working great so far, except if you paste something and then try to edit it, it will randomly select text in front of the cursor.

VB.NET
Imports System.Text.RegularExpressions
Imports System.Runtime.InteropServices
Public Class Form1

[code]....

When you try to edit the pasted text this will happen:It randomly selects text in front of the cursor. This is only when the pasted text contains a keywordmatch.

View 1 Replies

.net - .Net And Multiplication Of Singles?

Nov 12, 2009

Dim result as single = 0
result = CType("8.01", Single) * 100 ' result=801.0 as expected
result = CType("8.02", Single) * 100 ' result=802.000061 --- not expected
Further to the above
result = 8.02 * 100 ' result = 802.0 as expected

View 4 Replies

Using Multiplication In If And Then Statements?

Oct 5, 2009

I am very new VB .NET and just starting If statements. My problem is: Write an If statement that determines whether the variable CurrentBalance is greater then 1000.01. If it is, multiply the variable CurrentBalance by 1.005. Otherwise, multiply CurrentBalance by 1.007.So far I have

Sub Main()
Dim currentBalance As Boolean
System.Console.WriteLine("Enter Current Balance: " & currentBalance)
If CDbl(currentBalance) > 1000.01 Then

[code].....

I really don't even know if thats how I should be starting. Not sure what to put after the first Then on how to make it multiply currentBalance by 100.5.

View 5 Replies

Multiplication Table By Using Loops?

Mar 11, 2008

I have an assignment to make a multiplication table using loops. The idea is to make this: If the user enters 3 this is the result he gets:

0 1 2 3
1 1 2 3
2 2 4 6
3 3 6 9

if the user enters 5, this is te result:
0 1 2 3 4 5
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
4 4 8 12 16 20
5 5 10 15 20 25

[Code]...

View 4 Replies

While Loop On Multiplication Table?

Dec 1, 2010

how to use the while loop in multiplication??

View 2 Replies

Winforms - Multiplication Using FOR Loop?

May 13, 2012

How do I multiply inside loop using this code ?

Dim a As Integer
Dim b As Integer
a = inputBox("Enter first Number:")
b = inputBox("Enter second Number:")

and I want the answer to be shown in a label.

View 2 Replies

Losing IntWeight Variable For Multiplication?

Apr 16, 2012

I'm new to VB and programming in general and have not had too much trouble however i cannot figure this problem out and i've been working on it for a week. basically i have to create a program that calculates the mass of someone on another planet with the conversion numbers as constant, an input box for the user's mass, using select case format and output to a label including the name of planet ie "Your mass on &strPlantet is x" so what happens is my intWeight variable becomes zero and the lblResult is Zero. (i have not added the all the code for the label output) oh yeah i must also use a try/catch structure to prevent non numeric data from being input.[code]

View 20 Replies

Multiplication Game In VB Trouble Shoot

Feb 16, 2011

This is my assignment for tonight. If anyone can enlighten me as to why it doesn't work. I

know I haven't finished the timer, I trying to get results in the labels.[code...]

View 3 Replies

Multiplication Table In A Label Control?

Nov 1, 2009

Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim intCount = 1

[code].....

View 3 Replies

Multiplication Table With Repetition Structure

May 3, 2011

Here is the problem: In this question, you create an application that displays a multiplication table similar to the following figure, where x is a number entered by the user and y is the result of multiplying x by the numbers 1 through 9. Multiplication Table

[Code]....

View 2 Replies

Simple Calculator Multiplication And Division?

Jan 30, 2010

Simple Calculator multiplication and division Trying to make a simple calculator. My program inputs numbers and arithmetic operations thru commandbuttons. The numbers, num(n-+1), are odd and the operations, op(n), are even. The code is based on the even op string. Every time a op occurs it is stored in numop(n) to be accessed later. I have all the other operations in sequential order: "*"," "/, "+" and "-". The other similar For-Next loop are the same just interchange the two * for /, +and -. The "+" and "-" work fine in this configuration.

My problem is the multiplication and division does not occur. The numbers and operations line up. The numop(m)=g*h should yield numop(m)=num(1)*num(3). Is there some sort of code to be inserted to accomplish these multiplication and division operations?

[Code]...

View 7 Replies

VS 2005 Performing The Multiplication With Timespan?

Aug 20, 2009

I am trying to multiply timespan by an integer....

Private Sub wtothrs0_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles wtothrs0.MouseClick
Dim temp As TimeSpan = TimeSpan.Parse(ttothrs0.Text) + TimeSpan.Parse(wetothrs0.Text)
wtothrs0.Text = temp.ToString

[code]....

i gives the error mes "Input string was not in a correct format."

View 14 Replies

Arrays Multiplication Using SumProduct WorkSheet Function?

Apr 28, 2012

I would like to multiply two single dimenssion arrays, having 5 elelments in each.

I prefer to use the SumProduct WorkSheet function.

I wrote this kind of line (below) but got a run time error #1004.

X = Application.WorksheetFunction.SumProduct(Array_1, Array_2)

I would like X to be the sum of the elelment multiplication of the two arrays/

View 1 Replies

Change / Convert The Result Of The Division Or Multiplication?

Nov 15, 2011

How do I change / convert the result of the division or multiplication examples of the division = 200,1247 becomes 200,12 (2 decimal) I use this coding corrected my code is

[Code]...

View 3 Replies

Create A Hash Table Using A Multiplication Method?

May 17, 2012

i need to create a hash table using a multiplication method and i need to create an array of linked listso how i can to create array of linkedlist in vb or c# ?

View 1 Replies

Create A Multiplication Table And It Has To Contain A Postest Loop

Apr 12, 2009

I have to create a multiplication table and it has to contain a postest loop. For example:

[Code]...

View 1 Replies

Multiplication Table That Input X / Y As Columns And Rows

Aug 20, 2010

How can I program a multiplication table that will input the x and y as columns and rows.

View 4 Replies

Syntax/Command Trying To Implement Syntax Highlighting In RichTextBox?

Oct 12, 2011

I am having an issue trying to figure this out. I am writing a script editor that uses tabs (a tab control) and I want to implement syntax highlighting. My issue is that every sample I can find on syntax highlighting uses

Private Sub RichTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged

View 1 Replies

Access Database Field Manipulation (multiplication Of 2 Fields)?

May 20, 2008

I want to open an Access database and I want to multiply 2 fields between each other. I am a newbie and till now I only have found the way to open the access database and create my Recordsets. So, for example, if I have table Mytbl that is a recordset with 4 fields (columns) and I would like to multiply column 3 with column 4 and put the results in a new Recordset, do I have to do it by multiplying each and every record

View 4 Replies

ComboBox - Set Labels And Scale Multiplication Factors For XY Grid

Jun 28, 2010

I have some combo boxes that basically set labels and scale multiplication factors for an XY grid. The combo boxes themselves work as they should. Two adjust scale levels of the XY grid (label and multiplication factors) the other changes the Y axis units (Imperial/Metric). The issue comes when I try to replot old data... I have the data in the array and have confirmed it is accurate...but...

When I apply the appropriate value to combobox.selectedindex and then call the Sub that actually makes the scale changes, the selected index reverts to -1. Small Example.... (note consider all variables as public and all routines in a single class - ignore spelling - this is a quick subset recreation not a copy).

Private Sub ReloadGraph()
combobox1.selectedindex = LengthScale(GraphNumber)
Call LengthLabels()
PlotUnits = Units(GraphNumber)
Call UnitsSet()
[Code] .....

OK - so I did add some code..... I did not actually run this code, but this is essentially a snapshot of what fails....when I step through line by line, the selectedindex changes to -1 as soon as I step to the second line of the second 2 Subs BEFORE it processes the second line (i.e. always after I step off Private Sub xxx() ). Again, both UnitSet and LengthLabels work OK separately when called, it is ONLY when I set the selectedindex from a variable (and again, it DOES set OK) and then call these routines that the selectedindex goes to -1. I have read a bunch of stuff relating to selectedindex and selectedvalue resetting IF one or the other is blank, but I have tried setting both in testing and this fails too!!

View 9 Replies

Command Button To Display A Multiplication Table In List Box

Mar 26, 2011

I have a command button to display a multiplication table in list box. the multiplication is from 1 to 5. my problem is, I have to use if else or looping in coding??

View 8 Replies

Countdown - Performing Addition / Multiplication On Entered Number

Sep 20, 2009

I have made an countdown app that is working in a normal way (added picture of it). Now when I select a number in the numeric box and click start, it starts to count down from that many minutes, but what I want is the number I put in the box *3. So if I put in 3 (points) the counter will count down 9 minutes. If it is possible I want a counter at the bottom every 3 minutes the value of the 000 at the bottom of the image multiply by 1 (+1 for every 3 mins timer1 runs).

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved