+ Added ex92 and ex93

This commit is contained in:
michael 2004-12-14 19:29:41 +00:00
parent e564787163
commit f0833e2c25
4 changed files with 32 additions and 3 deletions

View File

@ -58,7 +58,8 @@ OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12\
ex48 ex49 ex50 ex51 ex52 ex53 ex54 ex55 ex56 ex57 ex58\
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
ex71 ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 ex80 \
ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 ex90 ex91
ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 ex90 ex91 ex92 \
ex93
# This might not be the same list as objects, since some of the
# tests might be interactive.
@ -69,7 +70,8 @@ TOTEST=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12\
ex48 ex49 ex50 ex51 ex52 ex53 ex54 ex55 ex56 ex57 ex58\
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 ex80 \
ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 ex90 ex91
ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 ex90 ex91 ex92 \
ex93
LOGFILE=$(addsuffix .log, $(TOTEST))

View File

@ -88,7 +88,8 @@ ex85.pp contains an example of the TrimLeft function.
ex86.pp contains an example of the TrimRight function.
ex87.pp contains an example of the UpperCase function.
ex88.pp contains an example of the LastDelimiter function.
ex89.pp contains an example of the FormatFloat function.
ex90.pp contains an example of the StrToFloat function.
ex91.pp contains an example of the TextToFloat function.
ex92.pp contains an example of the GetEnvironmentVariableCount function.
ex93.pp contains an example of the GetEnvironmentVariable function.

15
docs/sysutex/ex92.pp Normal file
View File

@ -0,0 +1,15 @@
{$h+}
program example92;
{ This program demonstrates the
GetEnvironmentVariableCount function }
uses sysutils;
Var
I : Integer;
begin
For I:=1 to GetEnvironmentVariableCount do
Writeln(i:3,' : ',GetEnvironmentString(i));
end.

11
docs/sysutex/ex93.pp Normal file
View File

@ -0,0 +1,11 @@
{$h+}
program example92;
{ This program demonstrates the
GetEnvironmentVariable function }
uses sysutils;
begin
Writeln('PATH is: ',GetEnvironmentVariable('PATH'));
end.