Home All Groups Group Topic Archive Search About

Getting av value from a field in a dataset

Author
11 Nov 2006 12:20 PM
reidarT
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

Author
11 Nov 2006 1:17 PM
Cor Ligthert [MVP]
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


Show quoteHide quote
"reidarT" <rei***@eivon.no> schreef in bericht
news:uzAXavYBHHA.1196@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
>
Author
11 Nov 2006 1:48 PM
reidarT
Thanks for your answer. Yes I am Norwegian.
reidar
Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> skrev i melding
news:OgtUCOZBHHA.4864@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" <rei***@eivon.no> schreef in bericht
> news:uzAXavYBHHA.1196@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
>>
>
>