home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!cis.ohio-state.edu!sample.eng.ohio-state.edu!purdue!mentor.cc.purdue.edu!biomac1l.bio.purdue.edu!user
- From: pf@bilbo.bio.purdue.edu (Paul Furbacher)
- Subject: Re: tvquestion
- Message-ID: <pf-060193142812@biomac1l.bio.purdue.edu>
- Followup-To: comp.lang.pascal
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University
- References: <726229326.AA01017@contrast.wlink.nl>
- Distribution: comp.lang.pascal
- Date: Wed, 6 Jan 1993 19:42:29 GMT
- Lines: 34
-
- In article <726229326.AA01017@contrast.wlink.nl>,
- berend@contrast.wlink.nl (Berend de Boer) responded to
- Andrew Nowinski's request for a Celsius to Fahrenheit
- temperature converter in TV. [The suggested code is deleted.]
-
- While the suggested code is a start, and it is admirable that
- de Boer took precious time to develop it, another way of
- looking at Nowinski's request is to suggest that what he
- wants is a specialized version of the "Calculator" object
- found in the "calc.pas" unit.
-
- Where de Boer suggests closing the data entry dialog and popping
- up an "answer" dialog, one would more conveniently want to
- press an "C->F" button to get the conversion. (This is not meant
- to be a criticism of de Boer's helpful intentions, just a
- different slice on how to go about solving this problem.)
-
- Though the calculator object found in "calc.pas" unit is
- a complex example of how to use TV, it is instructive
- to study, pick it apart, and finally modify it to
- solve the problem for which Nowinski has requested help.
-
- In fact, as a project to extend the calculator object, one
- of the first "scientific" functions which could be provided
- would be the temperature unit converter. Then add other
- converters, degree/radians, hex/dec/oct/bin, sin/cos, log/10^x,
- etc.
-
- These are some thoughts on how to solve the more general
- problem and in the end, learn more about TV. Others may
- differ in their perception of what is needed to solve the
- specific problem at hand.
-
- PF
-