|
ChandraRam wrote: Where's the question??
It's gone now. There has been a trend of people deleting their posts after someone has answered.
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
|
|
|
|
|
PaulC1972 wrote: It's gone now. There has been a trend of people deleting their posts after someone has answered.
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
Are you blaming this on Colin, then?
|
|
|
|
|
ChandraRam wrote: Are you blaming this on Colin, then?
No. The sig is supposed to be a joke with a subtle hint of sarcasm
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
|
|
|
|
|
I'm sure this is a very simple question for all of you.
My son is taking a programming course and is learning visual basic 6.0. The program he has to write is:
the program selects a number between 1 and 10
the person enters a guess
the program tells them if it is right or not or if they are to high or to low.
How do you program the computer to have it pick a number between 1 and 10 randomly. My son is saying something about randomized timing....but I'm not sure if that is correct.
Appreciate any help anyone can provide....
Mathew's mom
|
|
|
|
|
If he's taking a course, they should provide the info he needs. He should try to do his homework, and then post his code here if he gets stuck.
A question like 'how do I get a random number' is also easily answered with google.
VB6 is also out of date, it's a shame that anyone teaches it. It has little to no real world value.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: VB6 is also out of date, it's a shame that anyone teaches it. It has little to no real world value.
Especially with the .NET Framework becoming so big. With .Net you can do so much more so much easier, but I some don't realize that.
|
|
|
|
|
Christian Graus wrote: VB6 is also out of date, it's a shame that anyone teaches it. It has little to no real world value.
thats not correct , vb6 still Exist
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
COBOL still exists. So does LOGO, for that matter. MS have not supported VB6 for some time. There are legacy projects to be sure, but that doesn't make VB6 worth learning, the number of new VB6 hires will continue to drop, as more and more people wake up.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: It has little to no real world value.
All the millions of lines of code out there have little to no real world value?
Kevin
|
|
|
|
|
ROTFL - pretty damn close !!!
Actually, I didn't say that. I meant that for someone entering the job market, VB6 has little value, compared to languages that are still alive.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: for someone entering the job market, VB6 has little value, compared to languages that are still alive.
Agreed.
Kevin
|
|
|
|
|
matt1308 wrote: My son is saying something about randomized timing....but I'm not sure if that is correct
With very old versions of Basic there was a statement called Randomize Timer but IIRC VB 6.0 didn't have it. I only know about the Random class in VB.NET.
I'd like to help but I don't feel like Googling it for you.
|
|
|
|
|
Thanks for the help, you are all correct it's a shame they are teaching outdated products....
It's just tough trying to work thru homework that you know nothing about!
|
|
|
|
|
I think if you look up a function called Rnd() and its sample code, you will be able to solve the problem.
|
|
|
|
|
i think that there is no one here have the answer to ur question, and so they are telling u that vb6 is outdata.... , but I think that she only needs to know the idea to solve the problem ...the idea is:
first: there is a function iin vb6 which is called rand(), which takes a number between 1 and 10.
second: let the program reads a number from the screen using any object some like open dialoge or maybe text field.
then comare the entered value with the value of rand() function
if not correct, then divide the interval (1 , 10) on 2 and see if the entered number from the screen is larger or smaller that 5
and go through until u get the right number
kind regards
|
|
|
|
|
obarahmeh wrote: i think that there is no one here have the answer to ur question
Wrong. Many of us used VB6, and all of us have access to google. VB6 IS outdated. However, the other issue is simply that if someone takes a course, they will be given everything they need to complete an assignment. Not encouraging people to first use those resources robs them of the chance to learn.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Not encouraging people to first use those resources robs them of the chance to learn.
Excellent point
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
Takes a good father to at least try, rather than throw your hands in the air and let your son fend for himself.
Posted by The ANZAC
|
|
|
|
|
Hello,
I have a problem with the WebFile type:
Dim myFile As WebFile
and i get the error:
Type 'WebFile' is not defined.
Anyone could help please?
thanks.
|
|
|
|
|
There's no such thing as WebFile . What are you trying to do?
|
|
|
|
|
i'm not trying to do anything, i picked up an existing code that is supposed to save a webpage into text, archive, complete, etc. and its not working because of this error... i got the code from here
If you can please check it out cuz i really need it
Thanks
|
|
|
|
|
Then you should ask the question in the forum provided by the article. If you download the article code, does it run ? It probably contains the class you can't find.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i alerady downloaded the code, tried to build it and run it, but the only build error this one, and i searched the whole code trying to find this class but i couldnt.
With msdn, there is something called WebFile object in the Microsoft VBA reference (here) , but its not clear because its not mentionned to which class or reference it belongs.
|
|
|
|
|
The class you're loking for is in ExternalFile.vb in the demo project.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks alot, in the version i downloaded this file was missing.. i searched the web and i found a complete version... i'll try it now..
thanks again
|
|
|
|