|
Hi ...
my string is : ""AAR"/"KKK"/"MMR""
i want result in following format:
k1=AAR
K2=KKK
k3=MMR
each substring into different variable;
Please Help!!
|
|
|
|
|
|
i tried it but split string into 2 parts.....i dont know how to use same for my result,please tell me.
|
|
|
|
|
string []substrings = yourstring.Split(new char[] { '/' });
string k1 = substrings[0];
string k2 = substrings[1];
|
|
|
|
|
Hey my k1 shows all string instead of 1st substring.n giving out of range error for k2.
|
|
|
|
|
|
Doesn't work...giving error as above msg.
|
|
|
|
|
KIDYA wrote: ""AAR"/"KKK"/"MMR""
Do you not see anything wrong with that? "AAR/KKK/MMR" would work.
Do you want to escape the speech marks? Use \".
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
It works....Thanx...
|
|
|
|
|
hello
what's the diff between lock(Employees.SyncRoot) and lock(Employees)?
(Employees can be any ICollection, ArrayList, Hashtable what not .. don't matter)
Thanks
dev
|
|
|
|
|
The SyncRoot property is used when you create synchronized collections using the .Synchronized() method. All operations on the synchronized collection lock on the object returned by the SyncRoot property. Creating synchronized collections using Synchronized() is not recommended though, because just making individual operations threadsafe usually isn't enough.
Other than that, it doesn't really matter.
|
|
|
|
|
|
yeah thanks saw that seems like it's just a long way of saying "yes it's pretty useless"
dev
|
|
|
|
|
Hello Experts......
i have problem in my dataset has a table which i retrieve from a file,now i want to copy values from dataset to table.i used SQLBULKCOPY but cant work.
Help me!!
My Code:-
<pre>
DataTable dt= ds.Tables["MyNewTable"]; // This is a table i have in my dataset
using (SqlBulkCopy bc = new SqlBulkCopy(conn))
{
conn.Open();
bc.DestinationTableName = "dbo.XYZ"; // This is a table wid same schema as MyNewTable.
// Starts the bulk copy.
DataTable dt1=new DataTable("MyNewTable");
bc.WriteToServer(dt); ;
// Closes the SqlBulkCopy instance
bc.Close();
}
|
|
|
|
|
Hi there,
What kind of error you are getting ?! if no exception then did you make sure that the source datatable has data? and is the connection string correct to be for the destination database ?!
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|
|
i am retriving d values in dataset from text file and i want to copy dataset values in d table,.n there was no any error in above code.
|
|
|
|
|
Are you certain about the connection string and there is data in the source datatable ?!
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|
|
ya.my connection is ok.passing accurate connection string.and dataset gives data also.i checked using datareader.
tell me how to bind datasource to table.i have same schema table in my database.
|
|
|
|
|
Hi all
How do i delete a temporary html file if i store a html file in
C:\temp
or my html file is: testing.html
How do i delete it ?
Thank You
|
|
|
|
|
You can use File.Delete method: [^]
Nuri
|
|
|
|
|
string path = @"c:\temp\testing.html";
File.Delete(path);
Thanks,
A.m.a.L
|
|
|
|
|
Hi,
I need to write a program that sendes some keystrokes, strings and other values to another application.
I look for an article/tutorial for that goal.
|
|
|
|
|
Here is an article for sending keystokes: [^]
Nuri
|
|
|
|
|
10x..
I have 2 more questions:
1. I think I will have to use the spy++ tool. Where can I find the ttol and a tutorial of for it?
2. Is it possible to send keystorkes to websites?
|
|
|
|
|
Use a webbrowser control and load the webpage inside it.
Thanks,
A.m.a.L
|
|
|
|