- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
Home
        NNNIC edited this page Sep 8, 2018 
        ·
        9 revisions
      
    Welcome to the psgg-delphi-sample wiki!
- Windows 10
 - SYN-G-GEN
 - Delphi
 
(1) Select Delphi STARTER KIT.
(2) Set the state machine name to "TestControl".
(3) Set the document folder to "c:\hoge\doc".
(4) Set the source folder to "c:\hoge".
(5) Select "YES" to copy State Manager.
(6) Create.
(1) Double-click c:\hoge\Project01.dpr" to launch Delphi IDE.
(2) Debug-run the project with no error.
(3) Create
(1) Create a new state and input the below in 'input' cell.
WriteLn('Hello World');
(2) Run
(1) Create new states as below
https://github.com/NNNIC/psgg-delphi-sample/raw/master/wiki/b0.png
  
(2) Modify the implementation source file.
- Add uses "System.DateUtils,SysUtils"
 - Add "select_yes_no" declearation.
 
uses StateManagerUnit,System.DateUtils,SysUtils; // modified
type TestControl = class(StateManager)
  protected
    fbYesNo : boolean;
    procedure br_YES(const st: string);
    procedure br_NO(const st: string);
    procedure select_yes_no;                    // added
  
- Add "select_yes_no" implementaion
 
procedure TestControl.select_yes_no; var i : integer; begin i := MilliSecondOf( Now ); WriteLn(i); fbYesNo := (i mod 2) = 0; end;
(3) Run


