View Single Post
  #1 (permalink)  
Old July 14th, 2015, 11:34 AM
Deaf Smith Deaf Smith is offline
Authorized User
Points: 50, Level: 1
Points: 50, Level: 1 Points: 50, Level: 1 Points: 50, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Location: Texas!!
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default VS 2013 C# and copy statements

I'm an old COBOL programmer...

Well when useing a SQL read in C#, I have lots of SQL code sniplets.

Is there a way to copy these as needed into a Form's CS file?

Example:

cmd.CommandText = "Select...";

is there a way to say cmd.CommandText = "C:/codelib/code1.cs"; ?

And have a library of code snipplets with whatever SQL statements one needs in a folder.

Yes I know I can make another class and do it that way but I wondered if this would work?

Thanks.
Reply With Quote