home *** CD-ROM | disk | FTP | other *** search
- {$R-,S-,V-}
- Unit CmdLn; {By John M. Majkrzak, Arden Hills MN CIS# 76617,264}
- {More used will be SetCmdLn(). I reinitialize some programs after
- resetting the the CmdLn so it can be read again with its new
- contents. Keep in mind the CmdLn is lost when you return to DOS.}
-
- Interface
-
- Procedure GetCmdLn(Var St: String);
- Procedure SetCmdLn( St: String);
-
- Implementation
- Type CmdLnSt80 = String[80];
- Type CmdLnBuf= ^CmdLnSt80;
- Var CmdLnPtr: CmdLnBuf;
-
- Procedure GetCmdLn(Var St: String);
- Begin
- St:= String(Ptr(PrefixSeg, $80)^);
- end;
-
- Procedure SetCmdLn( St: String);
- Var PStr: String[80];
- Begin
- PStr:= St;
- CmdLnPtr^:= PStr;
- end;
-
- Begin
- CmdLnPtr:= (Ptr(PreFixSeg, $80));
- end.