Click here to Skip to main content
15,888,803 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHelp needed in setting report programatically.. Pin
bugsome20-Feb-07 0:11
bugsome20-Feb-07 0:11 
QuestionAutoescape text Pin
Ray Cassick19-Feb-07 19:44
Ray Cassick19-Feb-07 19:44 
AnswerRe: Autoescape text Pin
Heath Stewart20-Feb-07 4:51
protectorHeath Stewart20-Feb-07 4:51 
AnswerRe: Autoescape text Pin
Pete O'Hanlon20-Feb-07 5:01
mvePete O'Hanlon20-Feb-07 5:01 
QuestionProblem with handling MDI child closing Pin
CPP_Student19-Feb-07 17:24
CPP_Student19-Feb-07 17:24 
AnswerRe: Problem with handling MDI child closing Pin
tgrt20-Feb-07 3:12
tgrt20-Feb-07 3:12 
GeneralRe: Problem with handling MDI child closing Pin
CPP_Student20-Feb-07 9:24
CPP_Student20-Feb-07 9:24 
QuestionUsing Reflection to get the name of a function parameter. Pin
howardjr19-Feb-07 15:31
howardjr19-Feb-07 15:31 
I wrote a routine using some of the reflection features to look for paired member fields in a class. The function looks up this variable's value and the value of the paired variable, which may or may not actually exist. If it does, then its boolean value is read, and if true the function returns a System.DBNull.value, otherwise the function just returns the value of the named field passed into it when called.

Rather than use variant variables to store my database fields, I'm using two fields to store the value read from a database. The first is a typed field variable for the actual data, if it's not Null, and the second is a boolean to track if the database value was Null or not, i.e., Name and Name_Is_Null, both of which belong to an instance of the DataBase_Info class.


Currently, the function is called with a string containing the name of one of the member fields, and there is only one instance of DataBase_Info. Now I'd like to pass the actual field variable to the function, and have resolve the class instance, if there is a paired member, and return either the value passed in if their isn't a paired member or it's false, otherwise return System.DBNull.value. How can I resolve the name of a variable passed in as a parameter and its container at run-time?

Thank you
AnswerRe: Using Reflection to get the name of a function parameter. Pin
Heath Stewart20-Feb-07 4:58
protectorHeath Stewart20-Feb-07 4:58 
GeneralRe: Using Reflection to get the name of a function parameter. Pin
howardjr21-Feb-07 9:57
howardjr21-Feb-07 9:57 
Questionupdating to framework 3.0 Pin
Darren Sim19-Feb-07 0:38
Darren Sim19-Feb-07 0:38 
AnswerRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 7:02
protectorHeath Stewart19-Feb-07 7:02 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 10:15
mveDave Kreskowiak19-Feb-07 10:15 
GeneralRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 13:13
protectorHeath Stewart19-Feb-07 13:13 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 13:19
mveDave Kreskowiak19-Feb-07 13:19 
GeneralRe: updating to framework 3.0 Pin
Kevin McFarlane20-Feb-07 2:24
Kevin McFarlane20-Feb-07 2:24 
GeneralRe: updating to framework 3.0 Pin
Heath Stewart20-Feb-07 4:27
protectorHeath Stewart20-Feb-07 4:27 
GeneralRe: updating to framework 3.0 Pin
Kevin McFarlane20-Feb-07 8:44
Kevin McFarlane20-Feb-07 8:44 
AnswerRe: updating to framework 3.0 Pin
Thomas Stockwell19-Feb-07 7:05
professionalThomas Stockwell19-Feb-07 7:05 
GeneralRe: updating to framework 3.0 Pin
Darren Sim19-Feb-07 22:31
Darren Sim19-Feb-07 22:31 
QuestionMaking things secure enough to be cracked !!! Pin
fulbright18-Feb-07 19:17
fulbright18-Feb-07 19:17 
AnswerRe: Making things secure enough to be cracked !!! Pin
Dave Kreskowiak19-Feb-07 9:36
mveDave Kreskowiak19-Feb-07 9:36 
GeneralRe: Making things secure enough to be cracked !!! Pin
Heath Stewart19-Feb-07 13:26
protectorHeath Stewart19-Feb-07 13:26 
QuestionSystem Colours Pin
Simon P Stevens15-Feb-07 22:56
Simon P Stevens15-Feb-07 22:56 
AnswerRe: System Colours Pin
Thomas Stockwell16-Feb-07 18:45
professionalThomas Stockwell16-Feb-07 18:45 

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.