Results 1 to 3 of 3

Thread: currency converter GBP (£'s) to Euro's

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    1

    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

  2. #2
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272
    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.

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Jimbo
    After lots of research I have come up with a suitable currency conversion program for you...

    VB Code:
    1. Function Rand(CurrName as String, Conversion as Double, _
    2.    Amount as Double) as Double
    3.  
    4.      Select Case CurrName
    5.             Case "AUD": Rand = Amount * 0
    6.             Case "GBP": Rand = Amount * 0
    7.             Case "USD": Rand = Amount * 0
    8.             Case "YEN": Rand = Amount * 0
    9.             Case "EUR": Rand = Amount * 0
    10.             Case "DM": Rand = Amount * 0
    11.             Case "FF": Rand = Amount * 0
    12.             Case "ITL": Rand = Amount * 0
    13.      End Select
    14. End Function
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width