Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
AnswerRe: Live Data in an application Pin
BobJanova16-Oct-11 22:52
BobJanova16-Oct-11 22:52 
QuestionUML Class Diagram Pin
PozzaVecia14-Oct-11 21:14
PozzaVecia14-Oct-11 21:14 
AnswerRe: UML Class Diagram Pin
Abhinav S15-Oct-11 3:20
Abhinav S15-Oct-11 3:20 
GeneralRe: UML Class Diagram Pin
PozzaVecia15-Oct-11 5:32
PozzaVecia15-Oct-11 5:32 
QuestionDisposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 9:39
CCodeNewbie14-Oct-11 9:39 
AnswerRe: Disposing of values in foreach loop Pin
Ian Shlasko14-Oct-11 9:46
Ian Shlasko14-Oct-11 9:46 
GeneralRe: Disposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 11:05
CCodeNewbie14-Oct-11 11:05 
GeneralRe: Disposing of values in foreach loop Pin
Ian Shlasko14-Oct-11 11:45
Ian Shlasko14-Oct-11 11:45 
Not that I'm aware of. I mean, you could put together an array of field names, an array of data types, and an array of sizes, but I doubt you want to go through all that.

In my system, I actually wrapped command objects a custom DBCommand class, so instead of adding parameters manually, I had the constructor parse out commands like in a string.Format... So in your case, I would do something like:
INSERT INTO dbo.DrvInfo({{s:Tstamp/50}}, {{s:SysID/5}})
And with a little regular expression parsing, the DBCommand constructor would replace those codes with parameter names, generate the parameter objects, etc.

Can't post the actual code, though... Proprietary... Ya know...
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Disposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 11:50
CCodeNewbie14-Oct-11 11:50 
GeneralRe: Disposing of values in foreach loop Pin
BobJanova16-Oct-11 22:54
BobJanova16-Oct-11 22:54 
AnswerRe: Disposing of values in foreach loop Pin
PIEBALDconsult14-Oct-11 11:11
mvePIEBALDconsult14-Oct-11 11:11 
GeneralRe: Disposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 11:16
CCodeNewbie14-Oct-11 11:16 
GeneralRe: Disposing of values in foreach loop Pin
PIEBALDconsult14-Oct-11 11:47
mvePIEBALDconsult14-Oct-11 11:47 
GeneralRe: Disposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 11:56
CCodeNewbie14-Oct-11 11:56 
GeneralRe: Disposing of values in foreach loop Pin
PIEBALDconsult14-Oct-11 12:04
mvePIEBALDconsult14-Oct-11 12:04 
GeneralRe: Disposing of values in foreach loop Pin
CCodeNewbie14-Oct-11 21:50
CCodeNewbie14-Oct-11 21:50 
GeneralRe: Disposing of values in foreach loop Pin
PIEBALDconsult15-Oct-11 4:22
mvePIEBALDconsult15-Oct-11 4:22 
AnswerRe: Disposing of values in foreach loop Pin
Luc Pattyn14-Oct-11 15:12
sitebuilderLuc Pattyn14-Oct-11 15:12 
GeneralRe: Disposing of values in foreach loop Pin
PIEBALDconsult14-Oct-11 16:43
mvePIEBALDconsult14-Oct-11 16:43 
AnswerRe: Disposing of values in foreach loop Pin
Luc Pattyn14-Oct-11 16:58
sitebuilderLuc Pattyn14-Oct-11 16:58 
QuestionNeed help reading 64bit registry keys from a 32bit application, remotely Pin
turbosupramk314-Oct-11 7:01
turbosupramk314-Oct-11 7:01 
AnswerRe: Need help reading 64bit registry keys from a 32bit application, remotely Pin
André Kraak14-Oct-11 8:55
André Kraak14-Oct-11 8:55 
GeneralRe: Need help reading 64bit registry keys from a 32bit application, remotely Pin
turbosupramk317-Oct-11 8:15
turbosupramk317-Oct-11 8:15 
GeneralRe: Need help reading 64bit registry keys from a 32bit application, remotely Pin
turbosupramk318-Oct-11 6:25
turbosupramk318-Oct-11 6:25 
GeneralRe: Need help reading 64bit registry keys from a 32bit application, remotely Pin
turbosupramk318-Oct-11 11:54
turbosupramk318-Oct-11 11:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.