Matthew Rodwell

Matthew Rodwell

  • NA
  • 46
  • 1.5k

how can i get the property name of the current field i am on

Sep 18 2020 4:54 AM
Is there a way i can get the NAME of the field from the field i am on so to use in a say sql question.
  1. SqlCommand cmd1 = new SqlCommand("exec [vfp_en_ord_ins_ord] @ident,@item,@value", con);  
  2.   
  3. cmd.Parameters.AddWithValue("@ident", ORNUMB.Text);  
  4. cmd.Parameters.AddWithValue("@item", NAME OF FIELD);  
  5. cmd.Parameters.AddWithValue("@Value",FIELDNAME.value  
  6. SqlDataReader sReader = cmd.ExecuteReader();  
 

Answers (2)