How to get the value from a variable and use it eg Form.VariableValue
-
Hi all, can someone help with the following issue I'm having. I am returning a dataset with a list of names of screen objects for a form. I am trying to loop round the dataset, pick up the name then get the type of the control. As follows... foreach (DataRow row in dataSet_Groups.sp091_load_user_screen_components_layout.Rows) { strObjectName = Convert.ToString(row["ScreenObjectName"]); strXMLText = Convert.ToString(row["XMLText"]); intX = Convert.ToInt32(row["X"]); intY = Convert.ToInt32(row["Y"]); intWidth = Convert.ToInt32(row["Width"]); intHeight = Convert.ToInt32(row["Weight"]); intPosition = Convert.ToInt32(row["Position"]); ctrlOnForm = frmToProcess.strObjectName; switch (ctrlOnForm.GetType().FullName) { case "textEdit": break; } } frmToProcess is the form in question. How do I get the the value out of strObjectName and link it onto the the form name so I can check it's properties (see bold part in code). It's almost as if I need to perform Macro substitution (from my old FoxPro days)! Sorry if my description is confusing. Thanks.
-
Hi all, can someone help with the following issue I'm having. I am returning a dataset with a list of names of screen objects for a form. I am trying to loop round the dataset, pick up the name then get the type of the control. As follows... foreach (DataRow row in dataSet_Groups.sp091_load_user_screen_components_layout.Rows) { strObjectName = Convert.ToString(row["ScreenObjectName"]); strXMLText = Convert.ToString(row["XMLText"]); intX = Convert.ToInt32(row["X"]); intY = Convert.ToInt32(row["Y"]); intWidth = Convert.ToInt32(row["Width"]); intHeight = Convert.ToInt32(row["Weight"]); intPosition = Convert.ToInt32(row["Position"]); ctrlOnForm = frmToProcess.strObjectName; switch (ctrlOnForm.GetType().FullName) { case "textEdit": break; } } frmToProcess is the form in question. How do I get the the value out of strObjectName and link it onto the the form name so I can check it's properties (see bold part in code). It's almost as if I need to perform Macro substitution (from my old FoxPro days)! Sorry if my description is confusing. Thanks.
this.Controls.Find(strObjectName, true);
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
this.Controls.Find(strObjectName, true);
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can