15,919,479 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 CrinaT (Top 5 by date)
CrinaT
23-Jul-12 13:41pm
View
Thank you so much,it helped me a lot!:)
One little comment on the code you wrote:
it's strings not string1 in the context:
stringFinal = string.Format("{0} set {1}{2}", string1[0], AddedString, string1[1]);
so what worked for me was :
stringFinal = string.Format("{0} set {1}{2}", strings[0], AddedString, strings[1]);
Thank you again>:D<
CrinaT
19-Jul-12 22:06pm
View
Well it worked fine for me at first,but by the time I got to the end of my five update statements with all their attributes it was giving me the index out of bounds error
CrinaT
19-Jul-12 22:02pm
View
I'm actually trying,but thanks for the irony.
You didn't tell me to do anything,you just told me what was wrong(which is kind of obvious,I'm looking for a solution)
Well I want it to exist even if he can see it or not.
I always have 2 strings in there,nothing more.
So mainly,do you know how I can always make it accept 2 elements?
CrinaT
19-Jul-12 21:52pm
View
Do you know how I can fix this?
I tried handling it like a normal array:
string[] string1 = null;
for (int x = 0; x < 2; x++)
{
string1[x] = toBeDivided.Split(delimitator, StringSplitOptions.None);
}
and got Error 1 Cannot implicitly convert type 'string[]' to 'string'
CrinaT
19-Jul-12 21:48pm
View
string toBeDivided = "update Evenimente set where Evenimente.id_E=(select id_E from Evenimente where nume_E like @numeEvenimentUniversal)";