astoria1112000
2011-12-01 03:49:35
Can I use DTM as a constant
2011-12-01 03:49:35
2011-12-01 03:50:02
2011-12-01 03:54:02
2011-12-01 04:00:12
From: astoria1112000
Can I use DTM as a constant
From: astoria1112000
I want to use DTM in my main block as well as some function where do I initialize it
program new;
//include srl here
var
dtmstring: string; //<<< global variable when declared outside other functions/procs
DTM: Integer; //<<< global variable when declared outside other functions/procs
procedure blahbla;
begin
end;
procedure somemoreblaaaa;
begin
end;
procedure MainLoop;
begin
DTM := DTMFromString(dtmstring);//initialize dtm at start of script once!
//dtmstring is the funny string you get: 'CBVnaldsfghiolasndg+asdklans564351'
blahbla;
somemoreblaaaa;
end;
begin
//SetupSRL;
MainLoop;
end.
2011-12-01 04:13:20
2011-12-01 04:17:41
2011-12-01 04:20:52
2011-12-01 04:28:25
From: astoria1112000
What does FreeDTM(DTM) do… Do i need to reinitialize the DTM to use it again
2011-12-01 04:32:55
2011-12-01 04:35:31
LoadDTM
While (Ture) Do
Begin
Stuff
If FindDTM Then
Stuff
End;
FreeDTM;2011-12-01 04:36:32
From: astoria1112000
So how can I do it if I need to use DTM inside my WHILE LOOP without loading and unloading it inside my loop
2011-12-01 04:40:18
2011-12-01 04:44:50
From: astoria1112000
I terminate my script manually so is there a way to FreeDTM when I stop the script (Clicking RED STOP button)
AddOnTerminate('name_of_procedure_or_function');
2011-12-01 05:06:06