Skip to main content

All Questions

Tagged with
0 votes
1 answer
82 views

Using Linq to select multiple values with reflection VB.NET

I'm experimenting with some LINQ in which I'd like my filters to be dynamically loaded at run time and for the result set to be returned as a 2d list of: Type Link Google [email protected] ...
Aiden's user avatar
  • 183
0 votes
2 answers
60 views

linq join two datatables

I am trying to join two datatables with linq The query is out_dt = (From row1 in dt1, row2 in dt2 where row1("id").ToString = row2("id").ToString Select row1).CopyToDatatable ...
user13831679's user avatar
0 votes
0 answers
92 views

HOW to generate SQL TRANSFORM, INNER JOIN and GROUP BY with database MS ACCESS IN VB.NET

I'm trying to generate SQL TRANSFORM, INNER JOIN and GROUP BY with database MS ACCESS in VB.NET. I don't want to use functions in MS Access because I use SQL for VB.NET. Is there any other method? ...
Tam88's user avatar
  • 71
0 votes
0 answers
36 views

For Loop through filtered datatable using LINQ Select Clause?

Is it possible to loop through a filtered data table and update the items as needed? In my 'For i As..Next' loop, I want to check the value of a specific column in the next row and if they're not ...
Candace Aisenbrey's user avatar
0 votes
0 answers
154 views

Find the coordinates of the image of the sample in the large image in the shortest time

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim intMain() As Integer = GetRgbValues(picMain.Image) Dim intTemp() As Integer = GetRgbValues(picTemp....
Mansour Dalir's user avatar
0 votes
0 answers
46 views

VB.net Nested 'For Each' Loop Slow

Can someone suggest how I can improve the performance of my nested For Each loops? This logic accepts a string variable CSV style parameter and converts it into a data table. We are adding some ...
Candace Aisenbrey's user avatar
0 votes
1 answer
46 views

Converting C# LINQ query to VB [duplicate]

I'm trying to convert a bit of code from C# to VB.NET that's looking for a specific set of class members and I've got it almost completely worked out except for a little LINQ query that uses some C# ...
G_Hosa_Phat's user avatar
  • 1,070
-1 votes
2 answers
225 views

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Need_result= {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), (...
Mansour Dalir's user avatar
0 votes
1 answer
46 views

VB.NET - Can I use LINQ over a List(of String) to find strings that end with items from another List(of String)?

I have a List(of String) with some names in them. I have another List(of String) that has suffixes in them, and I was hoping I could use LINQ to pull a list of the names that end with any of the ...
Jeff Newbill's user avatar
2 votes
2 answers
108 views

how to query based on start and end period dates with MS ACCESS in VB.NET

I'M trying to query based on start and end period dates with MS ACCESS in VB.NET Table ABSEN can union with table HELPERABSEN so I want to take the start date and end date from the table PERIOD with ...
Tam88's user avatar
  • 71
0 votes
0 answers
30 views

Detect EntityState of ALL included entities in Entity Framework query

I have a Linq query which returns related data with the .Include() method from Entity Framework (see below). My question is how would I get the EntityState of both the Companies and Addresses from ...
user22277483's user avatar
0 votes
1 answer
55 views

'Unable to cast the type 'System.Guid' to type 'System.Object'. LINQ to Entities only supports casting EDM primitive or enumeration types.'

In trying to retrieve info from my database using linq but it won't work. When i excecute the code it throws the exception "'Unable to cast the type 'System.Guid' to type 'System.Object'. LINQ to ...
Mckenzie's user avatar
0 votes
0 answers
74 views

Adding rows to a datatable takes too long

If reader.AsDataSet.Tables(0).Rows.Count > 0 Then Dim DistItemslist As New List(Of Eidos) Dim dgv As New DataGridView() Dim dic As New Dictionary(Of String, Integer)() Dim ...
kokotas's user avatar
  • 111
0 votes
1 answer
35 views

why does the operator logic in Linq not match the results when the value is 0 or nothing in VB.NET

I'm Trying operator logic but in Linq not match the results when the value is 0 or nothing in VB.NET Let STATUS = If(BLC < 24 And PRSOBNET Is Nothing, "NEED TO PRODUCE", "") is ...
roy's user avatar
  • 729
0 votes
0 answers
63 views

How can I make a linq call goes into my ObservableCollection variable

I'm having an issue with my ObservableCollection. As you can see when I try to fill up the user collection it says that it cannot be converted. If I use a list I can make it work but then the grid won'...
kick's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
205