Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Saturday at 9:50 AM
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Wednesday at 11:57 AM
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Ad icon
Colombo
Hard Disk For Sale
mazza
Updated:
Oct 10, 2026
land for sale
justasking
Updated:
Oct 10, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
vb.net + ms access
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Pathumpiyasa" data-source="post: 17182105" data-attributes="member: 487538"><p><strong>if you need more help contact me</strong></p><p></p><p>Public Class MyListItem</p><p> Private mText As String</p><p> Private mValue As String</p><p></p><p> Public Sub New(ByVal pText As String, ByVal pValue As String)</p><p> mText = pText</p><p> mValue = pValue</p><p> End Sub</p><p></p><p> Public ReadOnly Property Text() As String</p><p> Get</p><p> Return mText</p><p> End Get</p><p> End Property</p><p></p><p> Public ReadOnly Property Value() As String</p><p> Get</p><p> Return mValue</p><p> End Get</p><p> End Property</p><p></p><p> Public Overrides Function ToString() As String</p><p> Return mText</p><p> End Function</p><p>End Class</p><p></p><p>---------SET VALUE-------------------------------------------------------</p><p></p><p>DadaReader = SqlSelect("select * from Paymentrule")</p><p> If DadaReader.HasRows Then</p><p> Do While DadaReader.Read</p><p> cmboPaymentrule.DisplayMember = DadaReader("name")</p><p> cmboPaymentrule.ValueMember = DadaReader("PaymentruleID")</p><p> cmboPaymentrule.Items.Add(New MyListItem(DadaReader("name"), DadaReader("PaymentruleID")))</p><p> Loop</p><p> End If</p><p></p><p>-----GET Value------------------------------------------------------------------------</p><p> Dim Paymentruleid As MyListItem = CType(cmboPaymentrule.SelectedItem, MyListItem)</p><p></p><p>aa =Paymentruleid.Value</p></blockquote><p></p>
[QUOTE="Pathumpiyasa, post: 17182105, member: 487538"] [b]if you need more help contact me[/b] Public Class MyListItem Private mText As String Private mValue As String Public Sub New(ByVal pText As String, ByVal pValue As String) mText = pText mValue = pValue End Sub Public ReadOnly Property Text() As String Get Return mText End Get End Property Public ReadOnly Property Value() As String Get Return mValue End Get End Property Public Overrides Function ToString() As String Return mText End Function End Class ---------SET VALUE------------------------------------------------------- DadaReader = SqlSelect("select * from Paymentrule") If DadaReader.HasRows Then Do While DadaReader.Read cmboPaymentrule.DisplayMember = DadaReader("name") cmboPaymentrule.ValueMember = DadaReader("PaymentruleID") cmboPaymentrule.Items.Add(New MyListItem(DadaReader("name"), DadaReader("PaymentruleID"))) Loop End If -----GET Value------------------------------------------------------------------------ Dim Paymentruleid As MyListItem = CType(cmboPaymentrule.SelectedItem, MyListItem) aa =Paymentruleid.Value [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom