473,395 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Getting av value from a field in a dataset

I have a dataset with one field called Betaling.
How can I get this field assigned to the variable Enhetpris?
The Buttons code is:
Sub Beregn_OnClick(ByVal s As Object, ByVal e As System.EventArgs)
Dim Enhetspris As Integer = dsStevneAvgift.FieldValue("Betaling")
End Sub

reidarT
Nov 11 '06 #1
2 891
Reidar,

I did not know that "Betaling" is a Norge word to, before I was looking at
your email adres I thought, is Reidar Dutch or Belgian,
Dim Enhetspris As Integer = CInt(dsStevneAvgift.FieldValue("Betaling"))

I hope this helps,

Cor
"reidarT" <re****@eivon.noschreef in bericht
news:uz**************@TK2MSFTNGP02.phx.gbl...
>I have a dataset with one field called Betaling.
How can I get this field assigned to the variable Enhetpris?
The Buttons code is:
Sub Beregn_OnClick(ByVal s As Object, ByVal e As System.EventArgs)
Dim Enhetspris As Integer = dsStevneAvgift.FieldValue("Betaling")
End Sub

reidarT

Nov 11 '06 #2
Thanks for your answer. Yes I am Norwegian.
reidar
"Cor Ligthert [MVP]" <no************@planet.nlskrev i melding
news:Og**************@TK2MSFTNGP04.phx.gbl...
Reidar,

I did not know that "Betaling" is a Norge word to, before I was looking at
your email adres I thought, is Reidar Dutch or Belgian,
Dim Enhetspris As Integer = CInt(dsStevneAvgift.FieldValue("Betaling"))

I hope this helps,

Cor
"reidarT" <re****@eivon.noschreef in bericht
news:uz**************@TK2MSFTNGP02.phx.gbl...
>>I have a dataset with one field called Betaling.
How can I get this field assigned to the variable Enhetpris?
The Buttons code is:
Sub Beregn_OnClick(ByVal s As Object, ByVal e As System.EventArgs)
Dim Enhetspris As Integer = dsStevneAvgift.FieldValue("Betaling")
End Sub

reidarT


Nov 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WhiskyRomeo | last post by:
I have a bound textbox (bindings are set at design time) to a dataset column. Sometimes the value of this textbox must be set so that the underlying database field gets updated to null when using...
4
by: Shahar | last post by:
Hi I need to get a field name 'ID'(that is an auto-number field) right after I add a new row to table, it's work like that: myCommand.ExecuteNonQuery(); myCommand.CommandText = "SELECT...
1
by: J | last post by:
Situation - Using the table pubs.titleauthor in a strongly typed dataset, attached to a datagrid, using the datagrid I would like to set the royaltyper field = null (the database allows nulls in...
1
by: Oleg Shnayderman | last post by:
Hi All, I am very new to C# as well as to SQL. I need to write an application which is connecting to SQL DB and getting all the user's tables and after create a dataset for all the tables in the...
1
by: Stu | last post by:
Hi, I am trying to return the data key field value from a dataset when I select a row in a datagrid after the datagrid has been bound to a dataset. When I an the Edit, Update and Cancel row I...
3
by: Jason L James | last post by:
Hi all, I recently wrote a vb.net app using oledb to an access database. When I inserted new rows in my datatable the identity column was automatically created. This app used an un-typed...
14
by: rodchar | last post by:
hey all, i have a winapp that imports a text file into a typed dataset using the data adapter. some of the values are null. is there a way to remove the null values and put an empty string for...
6
by: DraguVaso | last post by:
Hi, Something I don't understand about a Typed DataSet: When a value in the DataSet is DBNull, it throws this error: "Cannot get value because it is DBNull". But aren't Typed DataSets...
13
by: dbuchanan | last post by:
Hello, Here is the error message; ---------------------------- Exception Message: ForeignKeyConstraint Lkp_tbl040Cmpt_lkp302SensorType requires the child key values (5) to exist in the...
5
by: jdzemke | last post by:
I am getting 'options' is null or not an object using when using a dynamic dataset with a dropdown list in an html form. I am filling-in a text field and filtering the values in the drop-down. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.