46 Replies
ok so show the code you have tried
$paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
ClassName.StaticMethod()
or just StaticMethod()
if in the same classBlazeBin Basic - xkuqgmejbbar
A tool for sharing your source code with the world!
But you can't really call if in an if since it's void
Not as part of the condition
But it can be in the if body
the if statement needs to be in a method
That too
is this a console app with top level statements?
All instructions apart from initial assignment of members need to be in a method
ok
Iβm flabbergasted that you know about async/await, http clients, and serialization, but you donβt know how to create a method
its a proof of concept app for school
so i didnt really fix my error
right, but is it a console app?
no its a π€’winforms projectπ€’
what should the if do
say the joke
BlazeBin Basic - xhgitdfaubmi
A tool for sharing your source code with the world!
here is the full codebase
i know its messy and has alot of memory leaks
but i just need that joke thingy to work sorry if im annoying you in some way
give me a minute
then just make it a lambda that calls the method and returns something you can use in the if
like how ??
seems simple to me
maybe i didn't get what you want
maybe you could even do it with Task.Run
BlazeBin Basic - cmcttmbgnjqn
A tool for sharing your source code with the world!
something like that
but i got 2 errors from this
actually 3
ok
@Dineo remove the third argument
wdym
the first error
what does it say?
ok i did that
and?
i fixed the other one so
just need to fix the third error
where do you initialize it?
in my static method
but its below that method that shows the error if that helps
it isnt in scope
soo :)))
I dont see it anywhere in the code you posted
its here
close to last lines
below materialMultiLineTextBox1.AppendText(r + '\n');
line 260
right so the scope ends at the last } of the method
also you arent deserializing to an object
I have to go for awhile
i fixed it :)))
closed
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity./closed
You need to use "/close" rather than "/closed"
Holy shit how did you even manage to come this far
This is some next level mess π
chatgpt, what a question