C++ - What Is A Variable With & -> Double&
Sep 12, 2011
So I have a class made in c++ and need to convert it into vb.net but I got problem converting a certain part of a function. [Code] What type of variable is "double&", I know a double but what's with the "&"? It isn't " double &dec_deg" so it isn't an address (pointers etc.)? and how would i convert that to vb.net?
View 5 Replies
ADVERTISEMENT
Sep 12, 2009
When the clear button is clicked on my interface I need my variables that are set as doubles to clear...I tried setting them to zero but that messed up my equations and caused more problems. Is there some method in double that clears them out or sets it back to nothing.here's the coding
'button i need to clear my textboxs and variables
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
[code]....
View 1 Replies
Jul 2, 2011
im having a simple computation problem here....
[Code]....
View 2 Replies
Apr 4, 2012
I've came across to quite an unusual problem with dividing integers with double variable. I've created For loop where to sum-integer interval -double is added. When sum reaches certain number text is displayed as showed below:
[Code]...
View 10 Replies
Sep 18, 2011
If i have a variable '12'
and a variable 'hello'
how can i double the '12' each time the variable is used?
What im trying to do is have a textbox which the user writes in a number, the number they enter then determines the amount of times a variable is written in a textbox.
so if the user were to put '3' into the textbox and click go, it would print hello12hello12hello12, how can i increase the number 12?
what i want it to do is look like this when the user presses go: hello12hello24hello36
View 1 Replies
Jun 22, 2012
Datatable contain some values like 0.0,10000.00,54678.94. I am getting that values using for loop and store it in a variable in double datatype. I want to add these nos and store it in a variable. Each time variable value changed.
for loop
Dim ds5 As dataset1.pro_dtsumDataTable = TA5.GetData(TextBox1.Text, users)
If (ds5.Rows.Count > 0) Then
Dim y As Double
y = Double.Parse(ds5(0)("sum(fld_primary)").ToString())
Dim y1 As Double
y1 = 0 + y
End If
Next
First time y1=0.0
Next time the value of y1 is not added to previous value.
I want the result y1=64679.34
View 1 Replies
Mar 14, 2012
I'm currently working on an assignment for university and I could really use a hand.I need to plot the equation y=0.2*sqrt(1-(0.25/x)^2)
View 5 Replies
Mar 22, 2009
I need to truncate to sertain amount of decimals for example : dim x as double;x= 6.98455 textbox1.text = x that mean textbox1.text= 6.98455 I need textbox1.text= 6.99
View 4 Replies
Jun 16, 2009
I want to see if a variable's type is string or double type. How to do it in vb.net immediate window?
View 1 Replies
Apr 18, 2012
I have a double value like 3768.595863. if i round this value then i will get 3768.596 but i want 3768.595.how can i get that?please reply.
View 7 Replies
Feb 10, 2011
How do I define a variable which holds double quotes. when I try to define the variable like this [code]...
View 2 Replies
Apr 15, 2010
I'm working on a vb.net application which imports from an Excel spreadsheet.
If rdr.HasRows Then
Do While rdr.Read()
If rdr.GetValue(0).Equals(System.DBNull.Value) Then
[Code]....
But when passing the value to the SQL insert I get: "Nullable object must have a value."
Solution:
Fixed by changing the datatype of the parameter in the sub I was calling and then using Variable.HasValue to do the conditional DBNull insert.
View 3 Replies
Oct 14, 2011
How to put data containing double-quotes in string variable? Aug 01, 2003 02:30 AM | LINK I need to store a string that contains words in double quotes. The complete string data is presented to the variable in double quotes, but the next double quotes within the data ends the string and the remaining text gives a syntax error. How can I place literal double-quotes in a string variable? For example:
[Code]...
View 1 Replies
Sep 20, 2009
How can I get access in a fast way to the single bytes that form a double variable?
In pseudo-code I want to do something like this:
Dim myDouble as Double
Dim myArray(7) as Byte
myArray = myDouble
'continue doing things with the single bytes
The code is meant for use in a I/O-handler. The double-variables have to be sent / received via TCP. For this purpose they shall be put into / assembled from I/O-buffers.
View 2 Replies
Mar 16, 2010
Whenever I store values to a double-type variable, and ask to display it on the screen, there seems to always be a discrepancy, for example, I entered 7.416 to a textbox and assigned it to a double. When i ask for it to be displayed, it used to be that the 7.416 is returned to me. But just a few days ago, when I debugged my program again, it returns numbers like 7.4159987.......[code]....
View 7 Replies
Oct 22, 2009
I want to use explicit conversion (CType function in VB.NET) to convert the variable d from double type to integer type and store the result as 132.
Imports System.Console
Module Module1
Sub Main()
[CODE]...
This is my code. But Visual Basic tells me an error: Error1Type 'i' is not defined.C:\Users\mihaispr\Desktop\Conversie explicita\Conversie explicita\Module1.vb1922Conversie explicita
View 4 Replies
Mar 4, 2011
An error occurred creating the form. See Exception.InnerException for details. The error is: Conversion from string "" to type 'Integer' is not valid."}
[Code]...
View 4 Replies
Jan 27, 2011
I have a situation where I am handling both single & double mouse click events on a form. In both cases something has to be loaded, however when a double click occurs, I do not wish to execute the code attached to the single click event.Is there a way to intercept the mouse click's and check if double or single and then execute the right event appropriately?
View 2 Replies
Sep 21, 2011
What's a good way to parse this particular type of xml? I'm trying to pull out the "900.74" which needs to be put into a type "double" variable.
<Field name="TotalAmount_ColumnSum" at="6" composition="2">900.74</Field>
There are dozens of lines starting with "<Field" in the file.
View 10 Replies
Nov 17, 2010
I have a htpc project that I am working on. The main program loads dll plugins which are basically other win forms. On each of these forms, including the main program, I use a picturebox (a double buffered picturebox) for the background image and then draw everything on it by hand. Whenever I load the form from the dll and show it, I get a weird flicker. It looks like it is the previously used double buffer. Is there any way to clear the background double buffer before the flicker? Or am I going in the wrong direction?
Here's a couple of videos of the problem:
[url]
[url]
Notice the black screen with the white lines on it or the flash of the desktop after I click "Movies." How do I get rid of that?
View 14 Replies
Aug 15, 2011
For greater accuracy I should use a Decimal instead of a Double ( so I've been told ). Why then have Microsoft chosen to use DOUBLE for most of the functions that return a floating point value in the Math Class?
[Code]....
View 9 Replies
Apr 4, 2009
In vb.net, im using objWriter.Write("playerA= "x"")as you can see im using double quotes inside double quotes, how do i skip it so the error doesnt show up?in php you make an "" to skip the string like ("playerA = "x" ")
View 6 Replies
Aug 11, 2010
When i use VB6 i get the following outputs
961.605 * 100 = 96161
936.495 * 100 = 93650
929.295 * 100 = 92929
NOW..... When i do the above in vb.net 2005 i get the following
961.605 * 100 = 96160
936.495 * 100 = 93650
929.295 * 100 = 92930
How can i get the same output as the VB results. And i have tired it ! Type conversions, math functions, everything i can think of to get the same VB6 output !
View 8 Replies
Aug 11, 2010
When i use VB6 i get the following outputs
[Code]...
View 1 Replies
Oct 27, 2009
I've asked this question before, and so have many before me, i have done extensive research on the topic and stil no help. Maybe this is some kind of secret info. shared only amongst top programmers. Bt how do you really, trully double buffer a form, aside from setting "Double Bufferd" to true, which doesn't work in most cases, I want to know how do companies lyk Microsoft and Symantec, prevent flashes on big applications such Word and Norton.
View 4 Replies
Feb 23, 2010
If I try to display a command line argument that has double quotes around, the double quotes are always stripped off. How can I avoid this?
for example, the argument is "c:xx.txt" and this displays c:xx.txt instead Console.WriteLine((My.Application.CommandLineArgs(4)))
View 4 Replies
Mar 25, 2010
I am getting the error:"Range variable 'sender' hides a variable in an enclosing block or a range variable previously defined in the query expression."for this
Imports System.Data.SqlClient
Imports System.Linq
Public Class Form1
[code]....
I can select any other item from the table without the error. "sender" has the same properties as "receiver" in the SQL table.
View 2 Replies
Mar 25, 2009
I have a CSV file where the values are in double quotes and seperated by a comma. I'm getting incorrect data if I try to seperate the string with my Split function. How do I do it?
Example:[code...]
View 2 Replies
Apr 12, 2011
I've been just making random programs trying to get the hang of the new language this time I was making a leap frog game where it switches back and forth beetween frogs every time a button is pressed. It also checks if the frog can land in the text box above the button pressed, if there is another frog there a message box will pop up saying sorry space is filled other wise the frog should land there.
[code]...
The error message says "Conversion from string "frog1" to type 'Double' is not valid." I understand what a double is but I've tried And If and that causes a bunch of errors.My Question is whats wrong with this cod and how can I make a double if statement???PS I did try to make an array to shorten this but thats in a different fourm will post URL later
View 3 Replies
Aug 23, 2011
I receive the error -
[Code]...
View 10 Replies