Reputation: 299 Architect
- Active Posts:
- 1,773 (0.91 per day)
- 26-March 09
- Profile Views:
- Last Active:
- Yesterday, 11:58 PM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Who Cares
- Dream Kudos:
- Expert In:
Posts I've Made
Posted 15 Jul 2014I assume you're trying to draw the waveform in the picturebox.
That being the case, you need to show the code that you're actually using and as Andrew has asked, clearly explain your issue.
You've posted code to a function, but you don't show where you call it from, or how you populate the inputs (i.e.: what populates the UDT WaveData16bit_ and what is it's definition)
Help yourself by giving as much information as you can....don't expect people to fully understand what you're trying to do.
Posted 1 Jul 2014How is PlayerID defined in your table? Is it an identity field? If so, you won't be able to add it in like that (albeit not sure about the error).
Can you show the schema of your table (Field Names, Type, etc).
Also, this is .Net, not VB6....
Posted 19 Jun 2014The simplest way would be to re-enable the first timer (and associated countdown variables) when the second timer has timed out.
Posted 30 May 2014Glad it helped, but I didn't really tell you anything more than what astonecipher was already trying to tell you.
Posted 29 May 2014I'm not that familiar with working with Access databases and have no idea which method you're using to connect to the database (or the schema), but normally if you wanted to check for the presence of an user, you would execute a select query to see if the user exists, then based on the result, decide whether to add or update a record. Looping through the whole table whilst there are only a few records might work, but imagine what it will be like if you had hundreds or thousands of records.....not very efficient.
The example below is intended as a pointer, it's untested and incomplete.
'Create SQL query strSQL = "Select * from Table where EnrollmentID = " & UserIDToFind 'Open recordset based on query rst.Open sSql, Cnn, adOpenForwardOnly, , adCmdText 'Check if we got something back if rst.eof and rst.bof then 'Record not found 'Add new record here else 'Record found 'Store the ID field for the record - we'll use it for update FoundID = rst![ID] 'Execute your update query (Build this up accordingly). "Update Table Set Field1 = value1, Field2=Value2 where ID = FoundID" Endif
- Member Title:
- D.I.C Lover
- 43 years old
- June 12, 1971
- Programming Languages:
- C#, VB
- Website URL: