Quick Search for:  in language:    
converts,from,system,other,also,tempreature,c
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 196,174. lines
 Jobs: 109. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login


 

 


Latest Code Ticker for ASP/ VbScript
Click here to see a screenshot of this code!Gallery Image with Zoom
By Marcelo Valle Franco on 1/12

(Screen Shot)

ASP Photo Competition
By Saul Bryan on 1/12


Execute DTS package
By Himadrish Laha on 1/12


Connecting to a MySQL with ADO, DAO and RDO
By Ahmed Magdy Ezzeldin on 1/11


Automatic Form Insertion To Database
By Yasar Bayar on 1/11


Click here to see a screenshot of this code!Find Closest Physical Location (based on zip code, etc)
By Mark Kahn on 1/11

(Screen Shot)

String --> SQL Search Query
By Mark Kahn on 1/11


Replace text/Numbers for Images...
By Kenneth Nilsson on 1/9


INSERT sentence generator
By Eitan Rousso on 1/8


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

any system to another tempreature converter

Print
Email
 
VB icon
Submitted on: 8/9/2002 4:38:06 PM
By: sherif rofael  
Level: Beginner
User Rating: By 3 Users
Compatibility:VbScript (browser/client side)

Users have accessed this code 1488 times.
 

(About the author)
 
     converts from any system to any other system, it's also tempreature converter , but it is a new look , i think it's good , excuse me , i'm still a beginner to vb script ,i 'm trying to practise it as much as possible

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :any system to another tempreature
    '     converter
    '**************************************
    just copy and paste the code ,
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

    '**************************************
    ' Name: any system to another tempreatur
    '     e converter
    ' Description:converts from any system t
    '     o any other system, 
    it's also tempreature converter , but it is a new look , i think it's good ,
    excuse me , i'm still a beginner To vb script ,i 'm trying to practise it as much as possible
    ' By: sherif rofael
    '
    ' Assumes:see it running : 
    http://sherif1.netfirms.com/tem.htm
    or 
    http://user.domaindlx.com/sherif/tem.htm
    '
    'This code is copyrighted and has    ' limited warranties.Please see http://w
    '     ww.Planet-Source-Code.com/vb/scripts/Sho
    '     wCode.asp?txtCodeId=7749&lngWId;=4    'for details.    '**************************************
    
    <HTML>
    <HEAD>
    <META http-equiv="Content-Language" content="en-us">
    <META http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <META name="GENERATOR" content="Microsoft FrontPage 5.0">
    <META name="ProgId" content="FrontPage.Editor.Document">
    <SCRIPT id=clientEventHandlersVBS language=vbscript>
    <!--
    Sub D1_onclick
    call detect()
    if convert.value="" Then convert.value=0
    End Sub
    Sub D2_onclick
    call detect()
    if convert.value="" Then convert.value=0
    End Sub
    function detect()
    if d1.value=1 and d2.value=1 Then 
    t.value= convert.value & " celcius equals " & convert.value & " celcius"
    End if
    if d1.value=2 and d2.value=2 Then 
    t.value= convert.value & " fahrenhite equals " & convert.value & " fahrenhite"
    End if
    if d1.value=3 and d2.value=3 Then 
    t.value= convert.value & " kelvin equals " & convert.value & " kelvin"
    End if
    if d1.value=1 and d2.value=2 Then 
    t.value= convert.value & " celcius equals " & ((convert.value)*9/5+32) & " fahrenhite"
    End if
    if d1.value=2 and d2.value=1 Then 
    t.value= convert.value & " fahrenhite equals " & (((convert.value)-32)*5/9) & " celcius"
    End if
    if d1.value=3 and d2.value=1 Then 
    t.value= convert.value & " kelvin equals " & (convert.value)-273 & " celcius"
    End if
    if d1.value=1 and d2.value=3 Then 
    t.value= convert.value & " celcius equals " & (convert.value)+273 & " kelvin"
    End if
    if d1.value=2 and d2.value=3 Then 
    t.value= convert.value & " fahrenhite equals " & (((convert.value)-32)*5/9)+273 & " kelvin"
    End if
    if d1.value=3 and d2.value=2 Then 
    t.value= convert.value & " kelvin equals " & ((convert.value)-273)*9/5+32 & " fahrenhite"
    End if
    End function
    Sub window_onload
    call detect()
    if convert.value="" Then convert.value=0
    End Sub
    -->
    </SCRIPT>
    <TITLE>tempreature converter by sherif rofael </TITLE>
    </HEAD>
    <BODY>
    <P> </P>
    <P>I WANT To CONVERT </P>
    <P>CONVERT : <INPUT type="text" name="convert" size="20"></P>
    <P>    FROM:                
    TO:</P>
    <P> <Select size="4" name="D1">
    <OPTION value="1" selected>celcius</OPTION>
    <OPTION value="2">fahrenhite</OPTION>
    <OPTION value="3">kelvin</OPTION>
    </Select>    <SELECT size="4" name="D2">
    <OPTION value="1" selected>celcius</OPTION>
    <OPTION value="2">fahrenhite</OPTION>
    <OPTION value="3">kelvin</OPTION>
    </Select></P>
    <P>       <INPUT type="text" name="T" size="45"></P>
    <P> </P>
    <P>    
    <A href="mailto:ya3amo@hotmail.com?subject=tempreature converter ( second version)">
    E-MAIL</A></P>
    <P> </P>
    </BODY>
    </HTML>


Other 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
8/9/2002 9:33:42 PM:Lewis Moten
I saw your site first.  Didn't realize 
you posted it on PSC also.  Kudos!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/21/2002 12:32:04 AM:rien
how to program count using vbscript 
"Peruntukan - Kos = Baki"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.