For, Case 0 frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_7.ToString("c2") MealPlans = mdlsample.Meal_Plan_7.ToString("c2") Case 1 frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_14.ToString("c2") MealPlans = mdlsample.Meal_Plan_14.ToString("c2") Case 2 frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_Unilimited.ToString("c2") MealPlans = mdlsample.Meal_Plan_Unilimited.ToString("c2") it says the meal_Plan_ () is not a memeber of the mdlSample. How do i fix that?
For,
Case 0
frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_7.ToString("c2")
MealPlans = mdlsample.Meal_Plan_7.ToString("c2")
Case 1
frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_14.ToString("c2")
MealPlans = mdlsample.Meal_Plan_14.ToString("c2")
Case 2
frmMain.lblMealPlan.Text = mdlsample.Meal_Plan_Unilimited.ToString("c2")
MealPlans = mdlsample.Meal_Plan_Unilimited.ToString("c2")
it says the meal_Plan_ () is not a memeber of the mdlSample. How do i fix that?
The error "Meal_Plan_() is not a member of mdlSample" typically means that the class or object mdlSample does not have a property or field named Meal_Plan_7, Meal_Plan_14, or Meal_Plan_Unilimited.
To fix this error, you need to check the mdlSample class or object and make sure that it has the appropriate properties or fields with the correct names.
Step by step
Solved in 2 steps