home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
acl-lib.zip
/
ACLLibraryTestForm.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2000-07-27
|
1KB
|
69 lines
Unit ACLLibraryTestForm;
Interface
Uses
Classes, Forms, Graphics, Buttons,
ACLConstants, ACLFileIOUtility,
ACLFileUtility, ACLFindFunctions,
ACLPCharUtility, ACLProfile,
ACLStringUtility, ACLUtility,
PCharList,
StdCtrls;
Type
TACLLibraryTestForm = Class (TForm)
Memo1: TMemo;
Button1: TButton;
Edit1: TEdit;
Procedure ACLLibraryTestFormOnDestroy (Sender: TObject);
Procedure ACLLibraryTestFormOnDismissDlg (Sender: TObject);
Procedure Button1OnClick (Sender: TObject);
Private
{Insert private declarations here}
Public
{Insert public declarations here}
End;
Var
ACLLibraryTestForm: TACLLibraryTestForm;
Implementation
uses
ACLString;
Procedure TACLLibraryTestForm.ACLLibraryTestFormOnDestroy (Sender: TObject);
Begin
CheckAllAStringsDestroyed;
End;
Procedure TACLLibraryTestForm.ACLLibraryTestFormOnDismissDlg (Sender: TObject);
Begin
End;
Procedure TACLLibraryTestForm.Button1OnClick (Sender: TObject);
var
// T: PChar;
AString: TAString;
AString2: TAString;
begin
// T:= Memo1.Lines.GetText;
AString:= TAString.CreateFromPCharWithDispose( Memo1.Lines.GetText );
AString2:= TAString.CreateFrom( Edit1.Text );
AString2.Trim;
AString.AddAString( AString2 );
Memo1.Lines.SetText( AString.AsPChar );
AString.Destroy;
AString2.Destroy;
End;
Initialization
RegisterClasses ([TACLLibraryTestForm, TMemo, TButton, TEdit]);
End.