home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7908 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.9 KB  |  48 lines

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