15,913,773 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Glen Childs (Top 29 by date)
Glen Childs
15-Jan-14 12:26pm
View
Thanks :) and thanks again for your help.
Glen Childs
15-Jan-14 11:44am
View
The issue though was also solved by changing .Columns to .Rows :P but the changing of the loop does make more sense to have it your way round though :)
Glen Childs
15-Jan-14 11:39am
View
Oops no apologies :P
For r As Integer = 0 To COUNT - 1
For Each column As DataRows In dt.Rows
If column("AccountNo") = FrmSearch.txtCustID1.Text Then
Dim output As String = DataRows.ToString().ElementAt(r)
dtValue.Rows.Add(output)
End If
Next
Glen Childs
15-Jan-14 11:37am
View
Yes, thanks for your help!:)
Glen Childs
15-Jan-14 10:33am
View
Deleted
Value in the DataColumn?
Glen Childs
15-Jan-14 10:28am
View
Dim COUNT As Integer = dt.Rows.Count
For r As Integer = 0 To COUNT - 1
For Each column As DataColumn In dt.Columns
If column("AccountNo") = FrmSearch.txtCustID1.Text Then
Dim output As String = DataColumn.ToString().ElementAt(r)
dtValue.Rows.Add(output)
End If
Next
Changed it to this but now column isnt accessible due to being a 'friend'
Glen Childs
15-Jan-14 9:52am
View
Thanks that has solved the error, now I am getting a slightly different error... No default member found for type 'DataColumn'. Errors on the IF statement
Dim COUNT As Integer = dt.Rows.Count
For Each DataColumn In dt.Columns
For r As Integer = 0 To COUNT - 1
If DataColumn("AccountNo") = FrmSearch.txtCustID1.Text Then
Dim output As String = DataColumn.ToString().ElementAt(r)
dtValue.Rows.Add(output)
End If
Next
Next
Glen Childs
10-Jan-14 7:00am
View
Thanks removing them worked, but how can I add the keys back? As my C# app isnt now able to access the data in those tables.
Glen Childs
10-Jan-14 6:27am
View
I couldn't drop the PK - Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'PK_Customer'. Cannot insert duplicate key in object 'dbo.Customer'. The duplicate key value is (105).
The statement has been terminated.
Msg 3725, Level 16, State 0, Line 6
The constraint 'PK_Customer' is being referenced by table 'Accounts', foreign key constraint 'FK_CustomerID'.
Msg 3727, Level 16, State 0, Line 6
Could not drop constraint. See previous errors
Glen Childs
7-Nov-13 11:13am
View
Labelout put is a string, it does appear though that the while loop is being skipped.. .
Glen Childs
7-Nov-13 11:02am
View
Hello Richard, the custID was in the Accounts as an Numeric(16,0) and CustId variable was a string.. So I have changed the variable to be an Integer and this has solved the problem thanks:)
Quick question I have added FrmCustomerAccounts.lblPoints.Text = LabelOutput into the While under 'labeloutput = reader (0)' however this isnt adding the number into the label's text, what have I done wrong?
Glen Childs
9-Oct-13 11:46am
View
Thanks Phil.o, Im getting another error though - cannot await string. But if I take the keyword await out the error - cannot implicitly convert string to list<string>
Glen Childs
9-Oct-13 9:22am
View
Thanks phil.o, however when I take the string prefix out from the _wordList, It errors saying that you cannot convert type of string to list. However if you specify that _wordList is a string I am receiving an error on the last two lines: 1. int i = r.Next(0, _wordList.Count - 1); - operator '-' cannot be applied to method group and int 2.: string doesnt contain an elementat and no extension accepting a first argument of type string could be found.
Glen Childs
9-Oct-13 9:11am
View
I thought it was the FileIO.ReadText async that read the contents of the file to the _wordList list.
Glen Childs
3-Oct-13 4:42am
View
Oops good point! When I changed from OleDB to ODBC it works fine!
Thanks for your help Modestas! :-)
Glen Childs
1-Oct-13 10:36am
View
Rick,
How would I be able to get your top solution to be able to convert all the sheets in the workbook?
Regards,
Glen
Glen Childs
30-Sep-13 11:32am
View
Thanks Modestas, dont suppose you can help, I have tried the above and I am getting the following error: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'. this error is happening on the following line of code: var cnn = new OleDbConnection(cnnStr);
Any suggestions?
Cheers,
Glen.
Glen Childs
26-Sep-13 4:44am
View
Deleted
OleDbException was unhandled - "External Table is not in the expected format".
Glen Childs
26-Sep-13 4:36am
View
Deleted
The top one. Where its converting the document using the connection strings.
Glen Childs
26-Sep-13 4:21am
View
Rik, the code for some reason has decided to throw up an error : "External table is not in the correct format". I have been researching on the Internet but haven't found a solution. The forums seem to suggest that it is the connection string for excel however the connection string and the rest of the code is the same or similar as yours above.
Any suggestions?
Glen Childs
25-Sep-13 13:43pm
View
But the error occurs with either line of code.
Glen Childs
25-Sep-13 7:29am
View
Brilliant, works! Thanks ever so much for your help Rick!
Glen Childs
17-Jul-13 6:34am
View
Cheers
Glen Childs
17-Jul-13 6:33am
View
Cheers
Glen Childs
17-Jul-13 6:33am
View
Thanks :)
Glen Childs
17-Jul-13 6:33am
View
Works fantastic, Cheers
Glen Childs
17-Jul-13 5:04am
View
Oh right ok.
Something like this possibly?
DateTime time = DateTime.Now;
string format = "mm hh"
Glen Childs
17-Jul-13 4:59am
View
The console beep and the message box doesn't run, I'm not sure if the code is at fault or whether it is the way I'm inputting the time into the text box on the form.
Glen Childs
7-Jan-13 14:32pm
View
I have been searching for a while and I havent been able to find a way to get the app to create a folder on the desktop or for it to be able to copy the contents of the dvd to the folder.
Cheers,
Show More