120 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
int.Parse is trying to parse null
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ha beat you
lmao
where's my prize
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Add some if statements for those inputs to make sure you're only int.Parse valid ints
you can also use int.TryParse
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yo, fair tbh
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh, but how do I make the combo box start with 0? when i start the program
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
how
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
this one?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
okay
yeah it worked
thanks
BOOM
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
it's the cinnamon toast crunch meme from 2002
"what the cinnamon toast fuck is this"
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
do you guys know how I can clear the radio box?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
still trying to figure out how
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
lets say I picked smalled but I changed my mind so I clicked clear the only thing clearing is the text box and the combo box but I want to uncheck the radio buttons to
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
under clear button right
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah idk why it didn't change
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
one more problem
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
that's right now I didn't do anything right
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
if you look at timbits right
it shows 10 pack for 209
2.09
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
once I clicked calculate the tibits only shows the price
idk what I'm doing wrong
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
when you click calculate it's clearing some of the text from the buttons
show us the calc function again?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you're setting the text to the packs at the top, you can just delete that code i think
or comment it out
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
which one?
the const double?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh
yup
thanks
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
it worked
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
quick question for the price for the timbits I'm using a class level right
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
like that right
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ye looks good to me
I'm using it correctly?
ye it looks good
then this would be useless
well no, you can define those at the class level too, then just do price = Pack_10; or something
being underlined
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
right, the const double Pack_10 is being defined locally, inside of the function. move those to the class instead
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
beside price I would just put Pack_10?
or int Pack_10?
tbh, you can just change it back to how you had it. what you had works tbh
because idk how your app is structured
i'm making a few guesses
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
alright peace out
@niko
thanks and bye
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I'm not sure if this is gonna help but this is like the half of the code for timbits
well compile your program and see if it works
what you had before worked right?
before we started messing with const double Pack_10, etc
kk
OHHHHHHHHHHHHH
I forgot to add it
maybe
but I forgot to add it to the final code
stuff
ahhh ok, so you may want to just grab the value of the timbits and add it to what you have and you should be good right?
I think so
I'll take break first
@pip my bad for the ping but quick question for the class lvl I did price = 1.90 right
for the timbits
but I have another code that shows prices wouldn't that just over ride the class level?
this worked
the price class level was working
this "const double Pack_10 = 2.09;" code was useless
yea, those only work if something else is reading from them in your program. if nothing is reading from them then no reason to use them
oh okay
one more question how do I make the radio button work with the text box? If I click small it can only read the small one not the other ones
my bad if my explaining is bad
where you have the logic for your radio, hold references in that file to the text components. then you can do something like
or actually, you can do this in your main file if you hold references to everything there
I don't understand
can i see 100% of the file that has your calculate click function?
you have component references in that file somewhere
Like Small_One for example
that's the function, not the file
you declared some stuff like Small_One, Medium_Two for example(unless you're getting that via inheritance)
@pip I already fixed it but now I have a different problem
on this line I'm not sure what I'm doing wrog
add a + in between the COFFE string and the Small string
oof
you're probably ToString() ing the wrong thing
go to where that is in the program and you should be able to find the answer
?
probably somewhere else
you can find it, just find out where it's relaying the text
the only Tostring I was able to find
go to wherever the logic for checkout is
and find what it is printing
is it the result??
ye you're printing the object
you need to print their text
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
we got through it i think
I kinda fixed it for the Total I'm not sure what I'm doing wrong but I'm just gonna move on