Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve the value from a column in a dataset
Message
From
15/01/2003 14:24:35
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00740822
Message ID:
00742063
Views:
19
Roland,

It depends on what you're doing. If you're only ever working with a single row, then obviously it would always be 0. If not, then you need to use something like this:
iCurrRow = Me.BindingContext(MyTable).Position
Since I don't code in VB, I *think* the above syntax is correct, but not 100% certain.

~~Bonnie



>Hi Bonnie,
>
>Thanks!
>
>What would be the proper code to get the current row poistion safely?
>
>Dim iCurrRow
>iCurrRow =
>
>Thanks
>=============================================
>
>>Roland,
>>
>>That would be (assuming Row 0):
>>
>>Dim iFileNum as integer
>>iFileNum = Me.Listing01_Client_Ds11.Tables("Client").Rows(0)("FileNum")
>>
>>
>>~~Bonnie
>>
>>
>>>Hi,
>>>
>>>How do you retrieve a value from a column in a dataset?
>>>
>>>Tried the following and it does not pass the syntax checking.
>>>
>>>Dim iFileNum as interger
>>>iFileNum = Me.Listing01_Client_Ds11.Tables("Client", "FileNum")
>>>
>>>Thanks
>>>Roland
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform