Click here to Skip to main content
15,891,621 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: working with Visual Basic and Oracle Stored Procedures Pin
Member 121101704-Nov-15 20:47
Member 121101704-Nov-15 20:47 
QuestionIs this the perfect code to retrieve data from table to combobox? Pin
VSLearner201330-Oct-15 0:20
VSLearner201330-Oct-15 0:20 
AnswerRe: Is this the perfect code to retrieve data from table to combobox? Pin
Dave Kreskowiak30-Oct-15 3:17
mveDave Kreskowiak30-Oct-15 3:17 
QuestionSQL Query Builder Pin
Member 1209456128-Oct-15 4:10
Member 1209456128-Oct-15 4:10 
AnswerRe: SQL Query Builder Pin
Dave Kreskowiak28-Oct-15 4:16
mveDave Kreskowiak28-Oct-15 4:16 
GeneralRe: SQL Query Builder Pin
Tim Carmichael28-Oct-15 6:55
Tim Carmichael28-Oct-15 6:55 
AnswerRe: SQL Query Builder Pin
GuyThiebaut29-Oct-15 22:52
professionalGuyThiebaut29-Oct-15 22:52 
Questionvb.net 2010 pass two values to rowfilter in a dataset Pin
dcof27-Oct-15 17:26
dcof27-Oct-15 17:26 
In a vb.net 2010 desktop application, I want to use 2 values for rowfilter and sort in a dataset, but I do not know how to accomplish that goal. The 2 values that I want to use for rowfilter and sort are the following: Variables.g_strCatId & CType(sItemEntered, String)

Here is the code that I have so far:

Public Sub FilllstItem2(ByVal sItemEntered As Integer) Dim dtInv As DataTable = dsRpt.Tables("tblItemData") Dim dv As New DataView(dtInv) Dim i As Integer
    With dv
         .RowFilter = "RecordID = '" & Variables.g_strCatId & CType(sItemEntered, String) & "'"
         .Sort = "RecordID"
     End With
     If dv.Count > 0 Then
         For i = 0 To dv.Count - 1
             lstboxItems.Items.Add(CType(dv.Item(i)("ItemNo"), String) & " - " & CType(dv.Item(i)("Description"), String))
         Next i
     Else
     End If
     dv.Dispose()
     ReDim itemArray(lstboxItems.Items.Count)

End Sub

Thus would you show me how to modify the code that I just listed above so that I can pass the 2 values of Variables.g_strCatId & CType(sItemEntered, String) to the rowfilter and sort code that I listed below:

to With dv .RowFilter = "RecordID = '" & Variables.g_strCatId & CType(sItemEntered, String) & "'" .Sort = "RecordID" End With
Is there a way to use a linq statement instead? If so, can you show me the code to use the linq statement?
AnswerRe: vb.net 2010 pass two values to rowfilter in a dataset Pin
Dave Kreskowiak28-Oct-15 4:15
mveDave Kreskowiak28-Oct-15 4:15 
GeneralRe: vb.net 2010 pass two values to rowfilter in a dataset Pin
dcof28-Oct-15 9:20
dcof28-Oct-15 9:20 
Questionvb.net auto start program as windows startup Pin
Member 1109359627-Oct-15 10:34
Member 1109359627-Oct-15 10:34 
AnswerRe: vb.net auto start program as windows startup Pin
Richard MacCutchan27-Oct-15 11:37
mveRichard MacCutchan27-Oct-15 11:37 
AnswerRe: vb.net auto start program as windows startup Pin
Dave Kreskowiak28-Oct-15 4:03
mveDave Kreskowiak28-Oct-15 4:03 
QuestionListbox height adjustment Pin
lazy_dude26-Oct-15 23:55
lazy_dude26-Oct-15 23:55 
AnswerRe: Listbox height adjustment Pin
Wombaticus27-Oct-15 0:50
Wombaticus27-Oct-15 0:50 
GeneralRe: Listbox height adjustment Pin
lazy_dude27-Oct-15 1:11
lazy_dude27-Oct-15 1:11 
QuestionVisual Basic Noob, in need of some direction Pin
Member 1207985922-Oct-15 10:15
Member 1207985922-Oct-15 10:15 
QuestionRe: Visual Basic Noob, in need of some direction Pin
phil.o22-Oct-15 12:02
professionalphil.o22-Oct-15 12:02 
AnswerRe: Visual Basic Noob, in need of some direction Pin
Member 1207985922-Oct-15 13:25
Member 1207985922-Oct-15 13:25 
GeneralRe: Visual Basic Noob, in need of some direction Pin
Wombaticus3-Nov-15 7:22
Wombaticus3-Nov-15 7:22 
QuestionMessage Closed Pin
15-Oct-15 10:35
Gie-wel15-Oct-15 10:35 
AnswerRe: it always say's "Not allowed to change the 'ConnectionString' property. The connection's current state is open." and " Number of query values and destination fields are not the same". please help me Pin
Chris Quinn15-Oct-15 21:13
Chris Quinn15-Oct-15 21:13 
Questionit always say's "Not allowed to change the 'ConnectionString' property. The connection's current state is open." and " Number of query values and destination fields are not the same" what should i do? i need answer as soon as possible please i'm new Pin
Gie-wel15-Oct-15 10:17
Gie-wel15-Oct-15 10:17 
AnswerRe: it always say's "Not allowed to change the 'ConnectionString' property. The connection's current state is open." and " Number of query values and destination fields are not the same" what should i do? i need answer as soon as possible please i'm Pin
Wombaticus15-Oct-15 12:37
Wombaticus15-Oct-15 12:37 
AnswerRe: it always say's "Not allowed to change the 'ConnectionString' property. The connection's current state is open." and " Number of query values and destination fields are not the same" what should i do? i need answer as soon as possible please i'm Pin
Eddy Vluggen16-Oct-15 1:37
professionalEddy Vluggen16-Oct-15 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.