REVscene - Vancouver Automotive Forum


Welcome to the REVscene Automotive Forum forums.

Registration is Free!You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! The banners on the left side and below do not show for registered users!

If you have any problems with the registration process or your account login, please contact contact us.


Go Back   REVscene Automotive Forum > Vancouver LifeStyles (VLS) > Gaming, Computer Tech & Electronics

Gaming, Computer Tech & Electronics Fortnite.CounterStrike.CallOfDuty.Dota.MineCraft.
Tips & tricks, tech support, home theatre, online gaming, reviews, latest news...

Reply
 
Thread Tools
Old 02-01-2013, 12:50 PM   #1
My homepage has been set to RS
 
melloman's Avatar
 
Join Date: May 2005
Location: #604
Posts: 2,267
Thanked 2,454 Times in 813 Posts
Failed 146 Times in 72 Posts
Calling ALL Programmers

This is a call for anyone who has done Intro to Visual Basic.

You can see the full assignment in the spoiler:
Spoiler!


Coding:
Spoiler!


Issues:

'Invoice ID: to display last 3 digits of customer number and Initals of Name. Eg. EL725
'Customer Name "Last Name, First Name" while Customer Name txt box remains "First Name Last Name"
'Reservation Date = system date but in mm/dd/yyyy
'Sail Date = show sail date 7 days from reservation date
'Restaurant Charge = how to have seperate charges for adults and kids
'Total Amount Due = add everything together.

ANY HELP IS GREATLY APPRECIATED AS THIS IS DUE TOMORROW AT MIDNIGHT..

P.S. If you can help me figure this shit out. Coffee and donuts are on me at a n00b/RS meet.
Advertisement
__________________
Quote:
[17-03, 09:23] Amuro Ray is it normal for my dick to have things growing on it?
Quote:
[15-05, 13:34] FastAnna You guise are like diet coke and I am the mentos
[15-05, 13:34] FastAnna Incredible. How easy it is.
Quote:
Originally Posted by murd0c View Post
I'm scared of spiders... When I see one I toss my cats at it

Last edited by melloman; 02-01-2013 at 02:11 PM.
melloman is offline   Reply With Quote
Old 02-01-2013, 06:43 PM   #2
NOOB, Not Quite a Regular!
 
Tawpie's Avatar
 
Join Date: Jul 2012
Location: Van
Posts: 30
Thanked 3 Times in 3 Posts
Failed 1 Time in 1 Post
Quote:
'Invoice ID: to display last 3 digits of customer number and Initals of Name. Eg. EL725
For this, you will need to learn these functions: GetChar, Split, and ToString. Oh and, a basic understanding of concatenation.

I'm not going to put the code in here because I don't have any IDE to test the code, but I'll explain the steps required to achieve your objective.

1. Store their name in a variable, lets call this name.

2. Use Split method of String class to break name into two chunks INTO an array. (Tips: Space is the default Delimiter, and set the appropriate number for Limit to ensure you're only getting two letters.)

3. Use a for loop, use the GetChar method of String class to take the first indexed character of each string in your array. Store each char to a variable

4. Use the Right method of String class to grab the 3 numbers of your customer number.

5. Concatenate everything together to form XXnnn.

Hope this helps. I would code it if I had an IDE for VB, but I don't.
Tawpie is offline   Reply With Quote
This post thanked by:
Old 02-01-2013, 08:33 PM   #3
NOOB, Not Quite a Regular!
 
Tawpie's Avatar
 
Join Date: Jul 2012
Location: Van
Posts: 30
Thanked 3 Times in 3 Posts
Failed 1 Time in 1 Post
By the way, what are the content inside the second spoiler? Are those your work in progress? Or given by instructor?
Tawpie is offline   Reply With Quote
Old 02-02-2013, 01:33 PM   #4
My homepage has been set to RS
 
melloman's Avatar
 
Join Date: May 2005
Location: #604
Posts: 2,267
Thanked 2,454 Times in 813 Posts
Failed 146 Times in 72 Posts
Current work in progress.
__________________
Quote:
[17-03, 09:23] Amuro Ray is it normal for my dick to have things growing on it?
Quote:
[15-05, 13:34] FastAnna You guise are like diet coke and I am the mentos
[15-05, 13:34] FastAnna Incredible. How easy it is.
Quote:
Originally Posted by murd0c View Post
I'm scared of spiders... When I see one I toss my cats at it
melloman is offline   Reply With Quote
Old 02-02-2013, 03:40 PM   #5
NOOB, Not Quite a Regular!
 
Tawpie's Avatar
 
Join Date: Jul 2012
Location: Van
Posts: 30
Thanked 3 Times in 3 Posts
Failed 1 Time in 1 Post
I recommend you use the data type Decimal for any variables for money.

Look Here!
Tawpie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -8. The time now is 01:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
SEO by vBSEO ©2011, Crawlability, Inc.
Revscene.net cannot be held accountable for the actions of its members nor does the opinions of the members represent that of Revscene.net