|
-
Nov 30th, 2001, 10:47 AM
#1
Thread Starter
New Member
currency converter GBP (£'s) to Euro's
i need help in creating a currency converter
email [email protected]
i am using visual basic 6.0 from microsoft and i have 1 weeks knowledge of the program
-
Nov 30th, 2001, 12:02 PM
#2
Hyperactive Member
You should just know the factor of conversion...the rest is just multiplication.
For example ..
1 USD = 0.701 GBP { UK pound }
or 1 GBP = 1.43 USD
Therefore, 45 GBP = (45 * 1.43) USD
or 20 USD = (20*0.701) GBP
Program Logic:
You use a separated file to store the conversion factors/rates in USD like ..
UK,GBP,0.701
UAE,AED,3.673
Australia,AUD,1.929
Canada,CAD,1.58
etc..
Then you can use the conversion factors by loading the file at run time.
-
Nov 30th, 2001, 05:42 PM
#3
PowerPoster
Jimbo
After lots of research I have come up with a suitable currency conversion program for you...
VB Code:
Function Rand(CurrName as String, Conversion as Double, _
Amount as Double) as Double
Select Case CurrName
Case "AUD": Rand = Amount * 0
Case "GBP": Rand = Amount * 0
Case "USD": Rand = Amount * 0
Case "YEN": Rand = Amount * 0
Case "EUR": Rand = Amount * 0
Case "DM": Rand = Amount * 0
Case "FF": Rand = Amount * 0
Case "ITL": Rand = Amount * 0
End Select
End Function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|