C
C#8mo ago
Quan

C# help CS0103

I followed directions can someone tell me what i did wrong int[] salesValues = { 1000, 1500, 1800, 2600, 2500, 900 }; int runningTotal = 0; // Clear the ListBox for each calculation lstSales.Items.Clear(); // Calculate and display running total foreach (var value in salesValues) { runningTotal += value; lstSales.Items.Add($"Running Total: {runningTotal}"); }
No description
No description
No description
5 Replies
Angius
Angius8mo ago
lstSales variable doesn't exist anywhere
Quan
Quan8mo ago
how do i fix it my proffesor didnt add it in the code? @ZZZZZZZZZZZZZZZZZZZZZZZZZ
Angius
Angius8mo ago
¯\_(ツ)_/¯ My bet is that some control in your form should be named lstSales
Quan
Quan8mo ago
aww thanks might have to email him
SG97
SG978mo ago
most likely that listBox1
Want results from more Discord servers?
Add your server
More Posts
need help in animating mechanisms using c#http://www.ibrahimcayiroglu.com/Sayfalar/Mekanizma_Animasyon_Ornekleri-1.aspx this is supposed toCan't understand why this solution for a HackerRank problem is not workingHere is the link to the problem: https://www.hackerrank.com/challenges/count-triplets-1/problem?isFuUploading a picture, clicking a pixel and getting it's colour (Xamarin.Forms)I have a problem, I need help with a program that allows you to upload a picture from your computer ✅ Use Roslyn to auto-generate overloads of methodI'm working on some code and the amount of overloads I'm having to write is very quickly getting outSplit IEnumerable<XElement> into separate lists by Attribute ValueI have a variable set of XEelements (IEnumerable<XElement>) like so: ```xml <genre id="2892" nomcouProvided Microsoft code is throwing errorHi! I am trying to go through this learning module: https://learn.microsoft.com/en-us/training/modulNullReference ExceptionHello, I have this application that retrieves data from the TMDB API, but when I click on Details t❔ sonic modding projecthttps://github.com/CCIGAMES/Sonic-Hybrid-Ultimate I have a project that is a c# mod/extension of thetrying to create a function that returns the list from even numbers to odd numbers``` public static Node<int> EvenOdd(Node<int> head) { Node<int> curr = head; ✅ VS "cs1525 invalid expression term '{' " error when I change a variable value in debug modeHi everyone, and yes I know the error message is very clear and understandable. I've just upload the