mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
+ Added ex92 and ex93
This commit is contained in:
parent
e564787163
commit
f0833e2c25
@ -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\
|
ex48 ex49 ex50 ex51 ex52 ex53 ex54 ex55 ex56 ex57 ex58\
|
||||||
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
|
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
|
||||||
ex71 ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 ex80 \
|
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
|
# This might not be the same list as objects, since some of the
|
||||||
# tests might be interactive.
|
# 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\
|
ex48 ex49 ex50 ex51 ex52 ex53 ex54 ex55 ex56 ex57 ex58\
|
||||||
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
|
ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 ex67 ex68 ex69 ex70\
|
||||||
ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 ex80 \
|
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))
|
LOGFILE=$(addsuffix .log, $(TOTEST))
|
||||||
|
|
||||||
|
@ -88,7 +88,8 @@ ex85.pp contains an example of the TrimLeft function.
|
|||||||
ex86.pp contains an example of the TrimRight function.
|
ex86.pp contains an example of the TrimRight function.
|
||||||
ex87.pp contains an example of the UpperCase function.
|
ex87.pp contains an example of the UpperCase function.
|
||||||
ex88.pp contains an example of the LastDelimiter function.
|
ex88.pp contains an example of the LastDelimiter function.
|
||||||
|
|
||||||
ex89.pp contains an example of the FormatFloat function.
|
ex89.pp contains an example of the FormatFloat function.
|
||||||
ex90.pp contains an example of the StrToFloat function.
|
ex90.pp contains an example of the StrToFloat function.
|
||||||
ex91.pp contains an example of the TextToFloat 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
15
docs/sysutex/ex92.pp
Normal 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
11
docs/sysutex/ex93.pp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{$h+}
|
||||||
|
program example92;
|
||||||
|
|
||||||
|
{ This program demonstrates the
|
||||||
|
GetEnvironmentVariable function }
|
||||||
|
|
||||||
|
uses sysutils;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Writeln('PATH is: ',GetEnvironmentVariable('PATH'));
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user