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?

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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?

Expert Solution
Step 1

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.

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning