Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


I need to do a VB project in school

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1413
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I need to do a VB project in school
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 I need to do a VB project in school - 9/29/2004 11:16:18 PM   
  Tywien

 

Posts: 3
Score: 0
Joined: 9/29/2004
From:
Status: offline
Hello, I need to do a VB project in school. I'm 13 years old and the project has to be based on While wend, list box, add/subtract, changing color of the form. It doesn't have to include all of them but as many of them as possible. I'm finding it really hard to come up with a project because I find the coding very complicated. The project is worth 25 marks and I have to give it my Monday. Can someone give me a useful script? Please? And tell me what needs to be inserted in the form? If I don't come online please email me at tywien_90@hotmail.com Thanks!

_____________________________

Knowledge is knowing that the tomato is a fruit, wisdom is not putting it in a fruit salad
 
 
Post #: 1
 
 Re: I need to do a VB project in school - 9/29/2004 11:45:56 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
VB and VBscript are not the same thing.

(in reply to Tywien)
 
 
Post #: 2
 
 Re: I need to do a VB project in school - 9/30/2004 2:34:45 AM   
  Tywien

 

Posts: 3
Score: 0
Joined: 9/29/2004
From:
Status: offline
Oh well, in any case, if it's not spamming, could someone who knows VB still help me? You could email at the email ID in the first post.

(in reply to Tywien)
 
 
Post #: 3
 
 Re: I need to do a VB project in school - 9/30/2004 4:41:37 AM   
  LCoughdrop

 

Posts: 48
Score: 0
Joined: 8/23/2004
From:
Status: offline
Well here is a little help...

WHILE/WEND

WHILE (SOMETHING)
do some things
WEND

for example,

Dim X
X=0
WHILE X<10
msgbox(X)
X=X+1
WEND

This will display 10 different message boxes displaying the numbers 0 thru 9 (i think)

for a listbox you would basically refer to the object by its name listbox1 for example. If you want to add an item to the box, you would type something like listbox1.additem "SOME STRING"
or
listbox1.additem SOMEVARIABLEREPRESENTINGASTRING

changing the color of the form would be done by accessing the background property of the form object. I am not 100% sure if it is called bgcolor or background or whatever, but basically it would look like this...

form1.bgcolor =

if you look on the property list in Visual basic you can see the codes for the colors, they look something like &afh0000000 something like that, i am not really sure offhand.

I am not really sure what you mean by add/subtract, but basically you could do something like this...

Dim X,Y
X=10
Y=50
msgbox(y-x)

This will display a messagebox hopefully with the number 40.

If you need anymore help, just try to be as specific as possible...

--LC

(in reply to Tywien)
 
 
Post #: 4
 
 Re: I need to do a VB project in school - 10/1/2004 12:25:58 AM   
  Tywien

 

Posts: 3
Score: 0
Joined: 9/29/2004
From:
Status: offline
That's quite helpful but maybe you could give a program which shows the result of the addition or subtraction of two numbers inserted by the user in a message box.

Or maybe you could give me a while wend program that shows the multiples of 50 or summat in a text box?

If you have MSN or YIM maybe I could add you, to be more specific, it's hard like this. Thanks a lot, I really appreciate your help.

(in reply to Tywien)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I need to do a VB project in school Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts