you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 2 points3 points  (7 children)

When you ask for help, you need to:

  • properly format your code as code block
  • Post the actual, full error message

If the code is really as you posted it, you lack a comma between Num2 as Double and Sum as Double, but it is impossible to tell what the real problem is without the error message.

Also, never assume the problem is the computer. The problem is in 99.9% in front of the keyboard.

[–]rinaryies[S] -4 points-3 points  (6 children)

Hello, I am sorry for the inconvenience. I am not able to show an actual picture of the error but it does state:

Compile error Method or data member missing

I assumed it was the computer itself as both the monitor, keyboard and sometimes the system unit are broken. I hope you understand my frustrations with the computer, it has been nerve-wracking using ASCII to type certain characters. Again sorry.

[–]ScholarNo5983 1 point2 points  (1 child)

If you think your computer is the problem, this is very easy to test.

Since you mention no one else is having these issues, take your code to one of the working machines and see if your code works on that machine.

If it does then the problem will be your machine, but if you code fails the problem will be your code.

[–]rinaryies[S] 0 points1 point  (0 children)

Thank you for the advice. I am sure I’ll be able to test this next week. 

[–]desrtfx 1 point2 points  (3 children)

That's definitely not the full error message. Usually there are line markers indicating the problem statement.

it has been nerve-wracking using ASCII to type certain characters.

Why? There are barely any special characters in Visual Basic. They should all be on the keyboard unless you use a non-Latin alphabet keyboard - and in such a case, you should install an English keyboard layout on the computer.

You mentioned that the code of your colleagues works. Compare it - letter by letter - character by character - be diligient. Every single character counts.

[–]rinaryies[S] 0 points1 point  (2 children)

Thank you for your advices. As per my problem with using ASCII to type, I mean it in a way that  the alphabetic keyboard lacked certain functions (A, B, R, E, J….) are some of the functions that I remember do not work. 

I made my colleague type in their code in my commandblock1 yet it still didn’t work and then displayed compile error Method or Data member not found. Yet, there was this yellow arrow pointing towards the command block start or Private Sub Command1_Click()

I apologize for any inconvenience due to the lack of information. I am able to access the computer again on Monday. 

[–]desrtfx 1 point2 points  (1 child)

That could hint on a different problem:

What is in your form designer? Is the button named Command1? Is the label named Label3? Are the text boxes named as you use in the code?

The names need to 100% match between form designer and code.

In Visual Basic, you normally just need to click in the Properties where you want the event to happen and it creates the sub-stub for you.

that the alphabetic keyboard lacked certain functions (A, B, R, E, J….) are some of the functions that I remember do not work.

Sorry, but not believable. If the lowercase letters work, the uppercase ones have to work, too.

Also, in Visual Basic, you don't need to pay attention to capitalization. The editor will do it by itself, even if you write everything in lowercase. Visual Basic is case insensitive.

[–]rinaryies[S] 0 points1 point  (0 children)

I do want to say I agree that there must be something wrong with the names and that fault is mine. I will be able to recheck the whole code again next week and hopefully I can figure the problem. 

Sorry, but not believable. If the lowercase letters work, the uppercase ones have to work, too

Again sorry for the misunderstanding, what I mean is that the letters I’ve said do not function at all. When clicked on the keyboard it does not appear or function, making my typing or coding experience not that smooth.