473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

VB.NET App: How to loop through listbox items to perform a SQL insert?

16
Hiya, I am needing to add a Speaker ID and Production ID to an associative table based on a production that was previously created, based on the title of the production and every selected Speaker in a listbox.

The following code functions, but only selects the first occurance and then adds multiple duplicate entries to the table (based on how many items were selected).

Expand|Select|Wrap|Line Numbers
  1. For Each objDataRowView As DataRowView In lstSpeakers.SelectedItems
  2.             LoadAddProduction_Speaker()
  3.         Next
I have also tried this code, but recieve the "Public member 'Selected' on type 'DataRowView' not found" exception.

Expand|Select|Wrap|Line Numbers
  1. For i As Integer = 0 To lstSpeakers.Items.Count - 1
  2.             If Me.lstSpeakers.Items(i).Selected Then
  3.                 LoadAddProduction_Speaker()
  4.             End If
  5.         Next i
This is the code that the LoadAddProduction_Speaker() function is calling:
Expand|Select|Wrap|Line Numbers
  1. Public Shared Function AddProduction_Speaker() As OdbcCommand
  2.         Dim con As New OdbcConnection
  3.         Dim objcommand As OdbcCommand = New OdbcCommand()
  4.         con = New OdbcConnection(dc)
  5.         objcommand.Connection = con
  6.         objcommand.CommandText = "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) SELECT Speaker.Speaker_ID, Production.Production_ID FROM Production, Speaker WHERE Speaker.Speaker_FullName = '" & MediaCenter.frmMediaCenter.lstSpeakers.Text & "' AND Production.Title = '" & MediaCenter.frmMediaCenter.txtTitle.Text & "'"
  7.         objcommand.CommandType = CommandType.Text
  8.         con.Open()
  9.  
  10.         Try
  11.             objcommand.ExecuteNonQuery()
  12.         Catch err As Exception
  13.             MessageBox.Show(err.Message)
  14.         Finally
  15.             If Not con Is Nothing Then
  16.                 con.Close()
  17.             End If
  18.         End Try
  19.     End Function
Any ideas? Thanks
Nov 27 '07 #1
26 6818
dip_developer
648 Expert 512MB
Hiya, I am needing to add a Speaker ID and Production ID to an associative table based on a production that was previously created, based on the title of the production and every selected Speaker in a listbox.

The following code functions, but only selects the first occurance and then adds multiple duplicate entries to the table (based on how many items were selected).

Expand|Select|Wrap|Line Numbers
  1. For Each objDataRowView As DataRowView In lstSpeakers.SelectedItems
  2. LoadAddProduction_Speaker()
  3. Next
I have also tried this code, but recieve the "Public member 'Selected' on type 'DataRowView' not found" exception.

Expand|Select|Wrap|Line Numbers
  1. For i As Integer = 0 To lstSpeakers.Items.Count - 1
  2. If Me.lstSpeakers.Items(i).Selected Then
  3. LoadAddProduction_Speaker()
  4. End If
  5. Next i
This is the code that the LoadAddProduction_Speaker() function is calling:
Expand|Select|Wrap|Line Numbers
  1. Public Shared Function AddProduction_Speaker() As OdbcCommand
  2. Dim con As New OdbcConnection
  3. Dim objcommand As OdbcCommand = New OdbcCommand()
  4. con = New OdbcConnection(dc)
  5. objcommand.Connection = con
  6. objcommand.CommandText = "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) SELECT Speaker.Speaker_ID, Production.Production_ID FROM Production, Speaker WHERE Speaker.Speaker_FullName = '" & MediaCenter.frmMediaCenter.lstSpeakers.Text & "' AND Production.Title = '" & MediaCenter.frmMediaCenter.txtTitle.Text & "'"
  7. objcommand.CommandType = CommandType.Text
  8. con.Open()
  9.  
  10. Try
  11. objcommand.ExecuteNonQuery()
  12. Catch err As Exception
  13. MessageBox.Show(err.Message)
  14. Finally
  15. If Not con Is Nothing Then
  16. con.Close()
  17. End If
  18. End Try
  19. End Function
Any ideas? Thanks
Expand|Select|Wrap|Line Numbers
  1.  
  2. For Each lstItem As ListItem In Me.myListBox.Items
  3. If lstItem .Selected = True Then
  4. //Write your code to insert here
  5. End If
  6. Next
  7.  
  8.  
Nov 27 '07 #2
Jobe479
16
Hmm, I'm getting a "type 'listitem' is not defined" exception.
Nov 27 '07 #3
Frinavale
9,735 Expert Mod 8TB
Hmm, I'm getting a "type 'listitem' is not defined" exception.
That is rather strange...
ListItem should be included in the default libraries for applications.
Could you please post your include/import statements?
Nov 27 '07 #4
Jobe479
16
That is rather strange...
ListItem should be included in the default libraries for applications.
Could you please post your include/import statements?
Imports System.Data
Imports System.Data.Odbc
Nov 27 '07 #5
Frinavale
9,735 Expert Mod 8TB
Imports System.Data
Imports System.Data.Odbc
This shouldn't be necessary but try adding
Imports System.Object
Nov 27 '07 #6
Jobe479
16
No change =\ Does the same on another computer in a different project as well.
Nov 28 '07 #7
Shashi Sadasivan
1,435 Expert 1GB
For Each lstItem As System.Web.UI.WebControls.ListItem In Me.myListBox.Items

does adding the namespace in front of ListItem do anything?

you might need to manually add the reference (if it dosent appear)
Nov 28 '07 #8
Jobe479
16
For Each lstItem As System.Web.UI.WebControls.ListItem In Me.myListBox.Items

does adding the namespace in front of ListItem do anything?

you might need to manually add the reference (if it dosent appear)
That worked, but it throws a similar error as the others:
Unable to cast object of type 'System.Data.DataRowView' to type 'System.Web.UI.WebControls.ListItem'.
Nov 29 '07 #9
Shashi Sadasivan
1,435 Expert 1GB
That worked, but it throws a similar error as the others:
Unable to cast object of type 'System.Data.DataRowView' to type 'System.Web.UI.WebControls.ListItem'.
Hi Jobe479,
Could you please paste the exact exception being thrown, and at which line is that pointing to! ?
Nov 29 '07 #10
Jobe479
16
Hi Jobe479,
Could you please paste the exact exception being thrown, and at which line is that pointing to! ?
Sure np,

System.InvalidCastException was unhandled
Message="Unable to cast object of type 'System.Data.DataRowView' to type 'System.Web.UI.WebControls.ListItem'."
Source="MediaCenter"
StackTrace:
at MediaCenter.frmMediaCenter.btnAddProduction_Click( Object sender, EventArgs e) in C:\Documents and Settings\aradams\Desktop\MediaCenter\MediaCenter\M ediaCenter.vb:line 297
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationCo ntext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Run(String[] commandLine)
at MediaCenter.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Nov 29 '07 #11
Shashi Sadasivan
1,435 Expert 1GB
Very detailed Stack sent by you there....

whats at MediaCenter.vb:line 297
Nov 29 '07 #12
Jobe479
16
297 is the For Each lstItem As System.Web.UI.WebControls.ListItem In Me.lstSpeakers.Items line.

I guess I'm going to try and convert the selecteditems to an arrayList to try and avoid the DataRowView issue from the databound listbox.
Nov 29 '07 #13
Shashi Sadasivan
1,435 Expert 1GB
i think this is the line which should be throwing the error

Expand|Select|Wrap|Line Numbers
  1. objcommand.CommandText = "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) SELECT Speaker.Speaker_ID, Production.Production_ID FROM Production, Speaker WHERE Speaker.Speaker_FullName = '" & MediaCenter.frmMediaCenter.lstSpeakers.Text & "' AND Production.Title = '" & MediaCenter.frmMediaCenter.txtTitle.Text & "'"
notice the "MediaCenter.frmMediaCenter.lstSpeakers.Text " in the line...
if lstSpeakers is the ListBox, the a .Text should throw an exception (or it shouldnt work as expected)

You will have to create an array or List<string> of the selected items (the selected text) and then call the sql statement.
For each string in that array or List, you would have to keep adding the sql query clauses
Nov 29 '07 #14
Jobe479
16
i think this is the line which should be throwing the error

Expand|Select|Wrap|Line Numbers
  1. objcommand.CommandText = "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) SELECT Speaker.Speaker_ID, Production.Production_ID FROM Production, Speaker WHERE Speaker.Speaker_FullName = '" & MediaCenter.frmMediaCenter.lstSpeakers.Text & "' AND Production.Title = '" & MediaCenter.frmMediaCenter.txtTitle.Text & "'"
notice the "MediaCenter.frmMediaCenter.lstSpeakers.Text " in the line...
if lstSpeakers is the ListBox, the a .Text should throw an exception (or it shouldnt work as expected)

You will have to create an array or List<string> of the selected items (the selected text) and then call the sql statement.
For each string in that array or List, you would have to keep adding the sql query clauses
Ok, I've simplified the SQL query a bit:

Expand|Select|Wrap|Line Numbers
  1. "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) VALUES(" & MediaCenter.frmMediaCenter.lstSpeakers.SelectedValue & "," & MediaCenter.frmMediaCenter.txtGeneratedProductionID.Text & ")"
and am using the following to call the new function:

Expand|Select|Wrap|Line Numbers
  1. For Each objDataRowView As DataRowView In lstSpeakers.SelectedItems
  2.                  LoadAddProduction_Speaker2()
  3.         Next objDataRowView
If I select only one Speaker, it will add to the table correctly, but if I select more than one, it throws a "cannot insert duplicate key in object 'dbo.Production_Speaker'..." SQL error. So, it doesn't seem to be looping through each selecteditem successfully.
Nov 29 '07 #15
Frinavale
9,735 Expert Mod 8TB

and am using the following to call the new function:

Expand|Select|Wrap|Line Numbers
  1. For Each objDataRowView As DataRowView In lstSpeakers.SelectedItems
  2.                  LoadAddProduction_Speaker2()
  3.         Next objDataRowView
If I select only one Speaker, it will add to the table correctly, but if I select more than one, it throws a "cannot insert duplicate key in object 'dbo.Production_Speaker'..." SQL error. So, it doesn't seem to be looping through each selecteditem successfully.
Aren't you supposed to be passing the LoadAddProduction_Speaker2() function a new variable during the loop????

Otherwise it'll keep using the same data over and over again....
Nov 29 '07 #16
Jobe479
16
Aren't you supposed to be passing the LoadAddProduction_Speaker2() function a new variable during the loop????

Otherwise it'll keep using the same data over and over again....
I see what you're saying. I think you're on to something :)
Is something like this close to what you have in mind?

I've changed:
Expand|Select|Wrap|Line Numbers
  1. Public Shared Function AddProduction_Speaker2() As OdbcCommand
to:
Expand|Select|Wrap|Line Numbers
  1. Public Shared Function AddProduction_Speaker2(ByVal variable As String) As OdbcCommand
and the SQL string to:
Expand|Select|Wrap|Line Numbers
  1. "INSERT INTO Production_Speaker (Speaker_ID, Production_ID) VALUES(" & variable & "," & MediaCenter.frmMediaCenter.txtGeneratedProductionID.Text & ")"

and changed the loop accordingly:

Expand|Select|Wrap|Line Numbers
  1. Dim SelectedSpeakerID As String
  2.         SelectedSpeakerID = lstSpeakers.SelectedValue
  3.         For Each item As DataRowView In lstSpeakers.SelectedItems
  4.             Production.AddProduction_Speaker2(SelectedSpeakerID)
  5.         Next item
Upon run it's throwing a "Conversion from type 'DataRowView' to type 'String' is not valid" exception.
Nov 29 '07 #17
Jobe479
16
Oops, nevermind about the "Conversion from type 'DataRowView' to type 'String' is not valid".

I'm back to the same initial problem... it's still trying to insert duplicate rows into the table and isn't looping through the SelectedValue's.
Nov 29 '07 #18
Shashi Sadasivan
1,435 Expert 1GB
Hi,

have a look at this piece of code you put in
I have added some comments

Expand|Select|Wrap|Line Numbers
  1. Dim SelectedSpeakerID As String
  2.         'Following is the value being sent to the SQL Insert Function
  3.         SelectedSpeakerID = lstSpeakers.SelectedValue
  4.         'the foreach loop starts here for some reason
  5.         For Each item As DataRowView In lstSpeakers.SelectedItems
  6.             'SelectedSpeakerID will remain the same, isint it
  7.             Production.AddProduction_Speaker2(SelectedSpeakerI  D)
  8.         Next item
I dont want to sound harsh here, but why dont you desk check your code now !
Nov 29 '07 #19
Jobe479
16
Ah, that does make sense. Forgive my noobism, I am still very new to this :)

I have changed it to the following, but am receiving a new exception:

Unable to cast object of type 'System.Int32' to type 'System.Collections.IEnumerable'.

Expand|Select|Wrap|Line Numbers
  1. Dim SelectedSpeakerID As Integer
  2.         For Each item As DataRowView In lstSpeakers.SelectedValue
  3.             SelectedSpeakerID = lstSpeakers.SelectedValue
  4.             Production.AddProduction_Speaker2(SelectedSpeakerID)
  5.         Next item
Nov 29 '07 #20
Shashi Sadasivan
1,435 Expert 1GB
I doubt that you dont use the debugger.

use the debugger,
every the time the loop enters check the value of SelectedSpeakerID , and then get back
Nov 29 '07 #21
Jobe479
16
I doubt that you dont use the debugger.

use the debugger,
every the time the loop enters check the value of SelectedSpeakerID , and then get back
Worth a shot :) I appreciate the help.


Using the following:
Expand|Select|Wrap|Line Numbers
  1. Dim SelectedSpeakerID As Integer
  2.         For Each item As DataRowView In Me.lstSpeakers.Items
  3.             SelectedSpeakerID = lstSpeakers.SelectedValue
  4.             Production.AddProduction_Speaker2(SelectedSpeakerID)
  5.         Next item
Stepping into the debugger shows that it's sucessfully pulling the first SelectedValue, populates the SQL variable correctly, and adds it to the database. It then goes back to the loop, but selects the exact same SelectedValue, then pukes as it tries to add a duplicate entry to the database.
Nov 30 '07 #22
Shashi Sadasivan
1,435 Expert 1GB
You still dont get it do you?

replace SelectedSpeakerID with Item
Nov 30 '07 #23
Jobe479
16
You still dont get it do you?

replace SelectedSpeakerID with Item
I guess not. :(

Expand|Select|Wrap|Line Numbers
  1. Dim item As Integer
  2.         For Each item As DataRowView In Me.lstSpeakers.Items
  3.             item = lstSpeakers.SelectedValue
  4.             Production.AddProduction_Speaker2(item)
  5.         Next item
Produces the following exception:
Variable 'item' hides a variable in an enclosing block.

Expand|Select|Wrap|Line Numbers
  1. Dim item As DataRowView
  2.         For Each item In Me.lstSpeakers.Items
  3.             item = lstSpeakers.SelectedValue
  4.             Production.AddProduction_Speaker2(item)
  5.         Next
Throws:
Unable to cast object of type 'System.Int32' to type 'System.Data.DataRowView'.

Expand|Select|Wrap|Line Numbers
  1. Dim item As Integer
  2.         For Each item In Me.lstSpeakers.Items
  3.             item = lstSpeakers.SelectedValue
  4.             Production.AddProduction_Speaker2(item)
  5.         Next
Throws:
Conversion from type 'DataRowView' to type 'Integer' is not valid.
Nov 30 '07 #24
Frinavale
9,735 Expert Mod 8TB
Jobe479,

Could you please post the ASP code for your list box.
ListBoxes should not be using System.Data.DataRowView types. They are composed of ListItems. I have a feeling that what you are refering to as a ListBox is not what the experts here consider to be a ListBox...

ListBoxes don't have DataRowView objects and since you keep getting errors about casting items to this object type, I'm guessing that you aren't actually using a ListBox but something else entirely...

Take a look at the ListBox Class and How To: Determine the selection in the ListBox control.
From here you will see that there are no DataRowView objects being used...

Just ListItems...

When you process a ListItem's value you should be sure to cast it to the data type that you need to use to perform your logic.

So your code should look something like
Expand|Select|Wrap|Line Numbers
  1.              Dim item As Integer
  2.               For Each item As DataRowView In Me.lstSpeakers.Items
  3.                   item = Ctype(lstSpeakers.SelectedValue,Integer)
  4.                   'Or you can use: item = Integer.Parse(lstSpeakers.SelectedValue)
  5.                   Production.AddProduction_Speaker2(item)
  6.               Next item
  7.  
This will Normally get rid of the exception: "Conversion from type 'DataRowView' to type 'Integer' is not valid."

Right now you are letting the compiler figure out what type of data you are taking out of the item. You should never let the compiler do anything for you because you'll end up getting some pretty crazy stuff happening...like this exception...and sometimes worse things

So yeah, take a look at those links and post the ASP code for your ListBox and we'll see if we can get to the bottom of your problem :D

-Frinny
Nov 30 '07 #25
Jobe479
16
Hi Frinny,

No ASP here, just your standard Windows form embedding SQL.

This is how the ListBox is being populated:
(lstSpeakers of type System.Windows.Forms.ListBox for reference)

Expand|Select|Wrap|Line Numbers
  1. Private Sub LoadProductionSpeakerList()
  2.         Dim speakerList As DataSet
  3.         speakerList = Speaker.GetSpeaker()
  4.  
  5.         ' Set the data source
  6.         Me.lstSpeakers.DataSource = speakerList.Tables(0).DefaultView
  7.         ' Set the display field
  8.         Me.lstSpeakers.ValueMember = "speaker_id"
  9.         Me.lstSpeakers.DisplayMember = "speaker_fullname"
  10.  
  11.     End Sub
and the Query:

Expand|Select|Wrap|Line Numbers
  1. Public Shared Function GetSpeaker() As DataSet
  2.         Dim SpeakerList As New DataSet
  3.         Dim da As OdbcDataAdapter
  4.         Dim con As OdbcConnection
  5.         Dim query As String
  6.  
  7.         Try
  8.             ' Make the connection
  9.             con = New OdbcConnection(dc)
  10.             query = "select Speaker_id, Speaker_fullname FROM Speaker ORDER BY Speaker_fullname"
  11.             da = New OdbcDataAdapter(query, con)
  12.             da.Fill(SpeakerList)
  13.         Catch ex As Exception
  14.             Throw ex
  15.         Finally
  16.             If Not con Is Nothing Then
  17.                 con.Close()
  18.             End If
  19.         End Try
  20.         ' return the result
  21.         Return SpeakerList
  22.     End Function
I realize this may not be the best way to go about populating the ListBox, but it is the only way I know at present. So I am very open to other methods that could get around the DataRowView issue :)
Dec 1 '07 #26
Jobe479
16
I keep running across the solution to change the databinding order from

Expand|Select|Wrap|Line Numbers
  1. Me.lstSpeakers.DataSource = speakerList.Tables(0).DefaultView
  2. Me.lstSpeakers.ValueMember = "speaker_id"
  3. Me.lstSpeakers.DisplayMember = "speaker_fullname"
to

Expand|Select|Wrap|Line Numbers
  1. Me.lstSpeakers.DisplayMember = "speaker_fullname"
  2. Me.lstSpeakers.ValueMember = "speaker_id"
  3. Me.lstSpeakers.DataSource = speakerList.Tables(0).DefaultView
Unfortunately, it hasn't seemed to make a difference.
Dec 2 '07 #27

Sign in to post your reply or Sign up for a free account.

Similar topics

26
by: Christina | last post by:
I have a post-form that holds a listbox with mulitple selected items. When the form is posted to the server ASP file, I want to loop through the selected items, to insert each of them into a table....
4
by: Joneseyboy | last post by:
Hi, I'm new to this so I could really do with some help! I am using VB.net to create a small game. basically there is a Textbox, a button and a listbox. The user enters a number into the...
4
by: Ryan Ternier | last post by:
Thanks for the previous help guys! I got my list box issue working, but now i'm trying to loop through all the items in my page. I want to find each listbox, once I do i strip the ID down to...
3
by: Joey | last post by:
Hi, I'm trying to add a default item to my listbox but when I do it tells me that it's not defined, could someone tell me the syntax I need to use to get the listbox control to display a default...
3
by: Dean Slindee | last post by:
In a checked listbox, I am allowing drag/drop of the items within (resequencing). Problem is, when dropping a checked item, the checked state always reverts to unchecked (unwanted). Anyone know...
5
by: Zack Sessions | last post by:
Using VB.NET. I have a ListBox control that I have populated with a list of items. The user selects one or more items from the list to process. The best way I have found to loop through the...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
11
by: John Dann | last post by:
I'm still struggling to find a way of reordering the items within the same single listbox with drag and drop. I think I've got the drag working but it's the drop code I can't figure out. What I...
4
by: Seok Bee | last post by:
Dear Experts, I am having 1 listbox control in my web form and trying to retrieve the items and load into it. I want to list out those uploaded files into the database and list out in the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.