*/
Are you blogging on PH? Get your free blog.
*/

View \DEMO.PAS

FULLDB version 1.3

Submitted By: Unknown
Rating: (Not rated) (Rate It)


program demo;

{ Demo program for FULLDB.  Compile normally, then single step into
  the assembler routines wordcount and getword! }


{  NB:  See the special instructions to recompile PARSE.PAS and reassemble
        PARSE.ASM if PARSE.TPU or PARSE.OBJ is missing, or if you're using
        other than TP 6.0.  }


uses parse;

var
  s : string;
  w : word;
begin
  s := '            This sentence     has 5 words';
  writeln(wordcount(s));
  for w:=0 to 6 do
    writeln('w = ',w,' length = ',length(getword(w,s)),' word = ',getword(w,s));
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.