What Is The Largest Value A Long Data Type Can Hold
Sep 26, 2011I keep getting an over flow.I have two longs. The first is set to 16552800. I can add 32760 to it no problem. However I get an overflow error when I add 32820 to is.
View 1 RepliesI keep getting an over flow.I have two longs. The first is set to 16552800. I can add 32760 to it no problem. However I get an overflow error when I add 32820 to is.
View 1 RepliesI have a database table of company information.It's about 50 records and contains things like company id, company name, address, phone number, shipping rate1, shipping rate2,etc.I want to load that table into a structure that I can quickly search within my code.I want to search by id to find the company, and then use the company's data to update some records.My lazy way has always been to add a listbox for each piece of data, then do an indexof on the id, then access the same index on the other listboxes.[code]
View 6 RepliesWhat is the numeric data type that can hold the biggest Integer in VB.NET 2010?
View 5 Repliesi am reviewing variabes, and just wondering any variables that can be used in math to hold a value this big =)
[Code]...
I have a table in Oracle that has a column with the Long data type. I create a simple recordset and bind it to a gridview.
Me.grdFollowup.DataSource = rsDataSet
Me.grdFollowup.DataBind()
All of the columns populate correctly except for the Long column. It returns a null for all rows. I have tested the SQL statement in Toad and it works perfectly. how to get an Oracle Long data type to populate in a gridview? This is driving me nuts
What data type could I use in my access database that can hold very long texts. By default, each cell in Access tables can only contain up to 255 characters. Is there any way to extend this to any length I want?
View 4 Replies[wink]You'll notice i dim'd n as integer = 0...[/wink] hehe I need a bit of advice on how to find the largest number stored as data in an array. For example vote(0) = 6, and vote(3) = 12, and lets assume all the other vote(n) are less. How do I pick out the big one?
[Code]...
So I do not know at design time if the var ms is going to be a stringreader or a memorystream. So I am trying to do basically this:
Dim ms as object = myfunction...
Dim mytype As Type = ms.GetType
Dim returnedobject = ser.Deserialize(CType(ms, mytype))
But I get an error saying "type mytype is not defined". How can I do this?
I have a program that simply checks if the account number and pass word match. And if not it allows you to create it. But i have no idea on how to create something that will hold the data and will allow the user to add and remove sets of data.
View 1 RepliesIn vba, There is an address held by a long type which points to a null-terminated string, but I can't find a way to get the string from this address:
long str_address = ...
string str = ?
I saw something really strange today, that I have not seen before.I saw a variable declared as:Dim a as Long? I am obviously familiar with the Long datatype but what is Long?
View 4 RepliesIs it possible to change the type of a controls' height from integer to long? I tried:
Panel2.Height = New Long
I have a variable containing a double type eg, 56.3433253. I want to convert it to a long type and maintain the decimal places.
View 3 RepliesI'm trying to find a way to trick the compiler into exposing lines of code where the default "ToString" method of Integers, Longs, Doubles, DateTimes, etc. is being used. These are lines of code that must be reviewd for culture specifics. FxCop does not expose these areas when .ToString is not used explicity in the code.Putting a class in with something like the following freaks it out
Namespace system
Public Class Int32
Public Overrides Function ToSt
[code].....
I have a bit of a problem. I am using an Access database to hold data for my VB app. In the VB app, I have a data source thats pulling data from the database.
I modified the database today, deleted some tables, added another one, but the data source in the project window does not show these updated changes. I had to reconfigure the datasource with the wizard to get the changes to update.
Is there a way that i can get the data source to update itself when the form loads?
I'm not sure if this is a simple problem or not but it's frustrating me to no end.
I'm using the following code to add my data to the database, and then this to refresh. [code]...
I want to store the contents of an XMl file into an array but struggling to work this out. I have managed to read the data in and store in labels as a test. I then created an array list and used a message box to display the data to see that it has been stored. It does but I am not sure how to group this data. There are 3 records in the file. the idea is to end up with the following:
[Code]...
Is it possible to use ACCESS DB (MDB) on a SERVER. I would like to use the MDB file to hold my DATA. Has any1 used a multi user vb.net program with Access DB residing on a SERVER? I am just trying out something and do not want to use SQL SERVER for this project.
View 10 RepliesFor each column in data table i want to add parameter with same data type as column data type. But looks it's not that simple.
Dim cmd As New SqlCommand
Dim dType As New System.Data.SqlDbType
For Each cl As DataColumn In DataTable1.Columns
[CODE]...
How can I do this?
The problem is, I've never created a class before, not in VB, Java, or anything. I know all the terms associated with classes, I understand at a high level how classes work no problem. But I suck at the actual details of making one.[code]...
As for the Getter and Setter, the reason I put the question marks in is because I want to return the whole array there. The class will eventually have other properties which are basically permutations of the same data, but this is the full set that I will use when I want to save it out or something. Now I want to return the whole Array, but typing "Return fullDataSet()" doesn't seem like a good idea. I mean, the name of the property is "fullDataSet()." It will just make some kind of loop. But there is no other data to return.
How would i declare an array which would eventually hold data as follows:
Arr = [ _
[ 0, 0, 0, 0, 0, 0, 0, 0], _
[ 0,101,101,101,101,101,101, 0], _
[Code].....
How do i make a variable that can hold more than 1 piece of data. I wan't a variable that can keep 4 number in it. When i count them in using a for loop the only thing i have after it is finished is the last number counted in by the for loop.
View 2 RepliesI have an interface 'ICRUDable' and a class called ClientAddress which implements the ICRUDable interface.
My understanding of OOP would lead me to believe that if I declare a System.Data.Linq.Table(Of ICRUDable) then I should be able to put ClientAddress's in there.
The code I have tried includes;
Dim dc As New CRMDataContext
Dim items = dc.ClientAddresses
and
[Code]....
This code:
vb Dim s As String = strContents '<a global variable) Dim currentPos As Int64 = 0 Dim endPos As Int64 = strContents.Length - 1 '// A dictionary, used to count the frequencies Dim characterCounter As New Dictionary(Of [String], Int64)() While currentPos <> endPos '//
[CODE]...
Gives this error: Value of type 'System.Collections.Generic.KeyValuePair(Of String, Long)' cannot be converted to 'System.Collections.DictionaryEntry'.
I need to create a function which have either 1 parameter with a string as data type or 2 parameters with double as data type.Something like the substring method.
View 2 RepliesI'v designed a ms access database table with one field having Datetime datatype. I can Insert data into it from vb.net front end by trns_dt DateTime.Now.DateBut when I fetch records from the tableand assign the dataset datasource as da, it shows datatype mismatch error.
daleDbDataAdapter("SelectDaily_Transactiondtp_from_dt.value dtp_To.value con)
dsDataSet
[code].....
Is there a easer way of coding in stead of wrighting long long paragraphs like this in one line [code]All of this is on one line and i got lots of info to put down.."The game will begin on your 16th birthday with your mother waking you up. Today you are to go to the castle for the first time. Leave your bed and open your dresser for a Strength Seed. "
View 2 RepliesIf txtimg.Text.Contains("http" or "/" or ":" or "www") Then QuoteConversion from string "http" to type 'Long' is not valid.error i get How do i do or?
View 4 RepliesIf it will found period in the email add it will say I am converting it to long.
Button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]....
Here's the API
BOOL InternetSetOptionA(
__in HINTERNET hInternet,
__in DWORD dwOption,
__in LPVOID lpBuffer,
__in DWORD dwBufferLength
);
I have the first 2 parameters correctly, here's what I have:
Const INTERNET_OPTION_PROXY_USERNAME As Integer = 43
Const INTERNET_OPTION_PROXY_PASSWORD As Integer = 44
Const uname = "bproxies"
Const pass = "qwert1"
[code]...
And here's the error: Conversion from string "bproxies" to type 'Long' is not valid.