این برنامه ای که در چند پست قبل بود .
[HTML]
var
i,x:integer;
s,k:string;
cmdReset,cmdQuit,clicked:command;
begin
i:=1;
while i=1 do
begin
x:=0;
s:=Element_T(5);
k:=Getmobile(5);
Mobile_Search(s,k);
cmdReset:= CreateCommand('Reset', CM_SCREEN, 2);
AddCommand(cmdReset);
cmdQuit := CreateCommand('Quit', CM_EXIT, 1);
AddCommand(cmdQuit);
repeat
clicked:=GetClickedCommand;
if Clicked = cmdQuit then i:=0;
if Clicked = cmdReset then x:=1;
until (i=0) or (x=1);
RemoveCommand(cmdQuit); // reset
RemoveCommand(cmdReset);
ClearForm;
setcolor(250,250,250);
FillRect(0, 0, GetWidth, GetHeight);
setcolor(0,0,0);
end;[/HTML]
