0
0

It is a small problem but in your examples for VB you use a variable called system. Did you know that it is a reserved word in VB. It caused me a bunch of trouble until I found it. You may want to use lngSystem instead for the name for the variable type like most VB programmers use.

Mike

  • You must to post comments
0
0

In what version of Visual Basic? I just tested this in VB6 and it let me declare and use a variable named System with no problems.

  • You must to post comments
0
0

VB 6 Pro. Do you have the system info control in you program?

Mike

  • You must to post comments
0
0

I can declare it as a veriable and use it but the system will change the value of system veriable when it wants to giving you an incorrect value when you want to access Fmod causing an error because Fmod doesn’t know what the value you are sending it.

Mike

  • You must to post comments
0
0

[quote="Radwen":2l4iawlw]I can declare it as a veriable and use it but the system will change the value of system veriable when it wants to giving you an incorrect value when you want to access Fmod causing an error because Fmod doesn’t know what the value you are sending it.

Mike[/quote:2l4iawlw]Wait, are you talking about a reserved word, or a name being used by the System Info control?

If you’re running into a name collision, just prefix the name with a module and it’ll work fine.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.