Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JohnHPears
  • Order by date
  1. JohnHPears

    A QUESTION ABOUT PASCAL

    program F_Tables; var Permutations:integer; { ------------------------------------------------------------ } function AnsIsLegal(S:string):boolean; var aCOunt, bCOunt, cCOunt:integer; i:integer; begin aCount := 0; bCount := 0; cCount := 0; for i := 1 to 5 do begin case...
  2. JohnHPears

    Displaying Variable's In GRAPH & variable conversion

    OK there are typo's again, but you know what I mean. John Pears, Coventry, England.
  3. JohnHPears

    Displaying Variable's In GRAPH & variable conversion

    ERROR *** ERROR Both of the last two functions could return an empty string if you where to try foo := IntToStr(0); [\code] so change to [code] function IntToStr2(aValue:integer):string; var I:integer; S:string; begin if aValue = 0 then IntToStr := '0' else begin S := ''...
  4. JohnHPears

    Displaying Variable's In GRAPH & variable conversion

    Well, It's a long time from my turbo days. I now use Delphi for everything ( inc. "DOS" or console apps. ) In Delphi, IntToStr is in the SysUtils unit. But in case that's no good for you, and you can't find it, this will do the trick. {-------------------------------------------------------}...
  5. JohnHPears

    Displaying Variable's In GRAPH & variable conversion

    Use the IntToStr Function eg TextOut(x,y,IntToStr(IntVaue)); John Pears, Coventry, England.
  6. JohnHPears

    Problem with Turbo Pascal in Windows2000 cmd.exe/DOS-box

    Oops, I didn’t spot the 2000 bit. I suspect that the program will fail on win NT4 as well as Win2000 ( NT5 ). I have many 16 bit apps fail in the NT environment but work fine in win 95/98. I strongly recommend getting Borland Delphi 6/7 personal edition FREE from...
  7. JohnHPears

    Problem with Turbo Pascal in Windows2000 cmd.exe/DOS-box

    I’ve had similar problems using Delphi apps written for console mode. The problem nearly always turned out to be a runtime error that shut down the app with an error message and then closed the dos window, but this happens so quickly you miss the error message. Instead of running the “program”...

Part and Inventory Search

Back
Top