PWCT 1.9 Art Documentation ( http://doublesvsoop.sourceforge.net ) 2006-2019, Mahmoud Fayed ( msfclipper@users.sourceforge.net ) _____________________________________________________________________________________ Table of contents 1 - Introduction 2 - Implementation steps 3 - Final Steps Tree 4 - Application during the runtime 1 - Introduction In this lesson we are going to create the Age Calculation sample. 2 - Implementation Steps Fig. (1) Goal Desginer - Steps Tree Select the step (The First Step) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Windows) 3 - Select the component (Define New Window) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Define New Window) Note : Stop typing when you see the required component is selected Fig. (2) Component Browser – Select the component (Define New Window) After selecting the component click Ok or press ENTER Fig. (3) Interaction page - Set the properties and enter the required data as in the image above Fig. (4) Form Designer Fig. (5) Goal Desginer - Steps Tree Select the step (Window Properties) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Windows) 3 - Select the component (Window Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Window Class) Note : Stop typing when you see the required component is selected Fig. (6) Component Browser – Select the component (Window Class) After selecting the component click Ok or press ENTER Fig. (7) Interaction page - Set the properties and enter the required data as in the image above Fig. (8) Interaction page - Set the properties and enter the required data as in the image above Fig. (9) Interaction page - Set the properties and enter the required data as in the image above Fig. (10) Form Designer Fig. (11) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (12) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (13) Interaction page - Set the properties and enter the required data as in the image above Fig. (14) Form Designer Fig. (15) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (16) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (17) Interaction page - Set the properties and enter the required data as in the image above Fig. (18) Form Designer Fig. (19) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (20) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (21) Interaction page - Set the properties and enter the required data as in the image above Fig. (22) Form Designer Fig. (23) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (24) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (25) Interaction page - Set the properties and enter the required data as in the image above Fig. (26) Form Designer Fig. (27) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (28) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (29) Interaction page - Set the properties and enter the required data as in the image above Fig. (30) Form Designer Fig. (31) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (32) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (33) Interaction page - Set the properties and enter the required data as in the image above Fig. (34) Form Designer Fig. (35) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (36) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (37) Interaction page - Set the properties and enter the required data as in the image above Fig. (38) Form Designer Fig. (39) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (40) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (41) Interaction page - Set the properties and enter the required data as in the image above Fig. (42) Form Designer Fig. (43) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (44) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (45) Interaction page - Set the properties and enter the required data as in the image above Fig. (46) Form Designer Fig. (47) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (48) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (49) Interaction page - Set the properties and enter the required data as in the image above Fig. (50) Form Designer Fig. (51) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (52) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (53) Interaction page - Set the properties and enter the required data as in the image above Fig. (54) Form Designer Fig. (55) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (56) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (57) Interaction page - Set the properties and enter the required data as in the image above Fig. (58) Form Designer Fig. (59) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (60) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (61) Interaction page - Set the properties and enter the required data as in the image above Fig. (62) Form Designer Fig. (63) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (TextBox) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (TextBox) Note : Stop typing when you see the required component is selected Fig. (64) Component Browser – Select the component (TextBox) After selecting the component click Ok or press ENTER Fig. (65) Interaction page - Set the properties and enter the required data as in the image above Fig. (66) Form Designer Fig. (67) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (68) Component Browser – Select the component (Button) After selecting the component click Ok or press ENTER Fig. (69) Interaction page - Set the properties and enter the required data as in the image above Fig. (70) Form Designer Fig. (71) Goal Desginer - Steps Tree Select the step (Button Events) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Events) 3 - Select the component (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (72) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (73) Interaction page - Set the properties and enter the required data as in the image above Fig. (74) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Label) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Label) Note : Stop typing when you see the required component is selected Fig. (75) Component Browser – Select the component (Label) After selecting the component click Ok or press ENTER Fig. (76) Interaction page - Set the properties and enter the required data as in the image above Fig. (77) Form Designer Fig. (78) Goal Desginer - Steps Tree Select the step (Window Controls) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Controls) 3 - Select the component (Button) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button) Note : Stop typing when you see the required component is selected Fig. (79) Component Browser – Select the component (Button) After selecting the component click Ok or press ENTER Fig. (80) Interaction page - Set the properties and enter the required data as in the image above Fig. (81) Form Designer Fig. (82) Goal Desginer - Steps Tree Select the step (Button Events) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Events) 3 - Select the component (Button Events) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Events) Note : Stop typing when you see the required component is selected Fig. (83) Component Browser – Select the component (Button Events) After selecting the component click Ok or press ENTER Fig. (84) Interaction page - Set the properties and enter the required data as in the image above Fig. (85) Goal Desginer - Steps Tree Select the step (Define New Window ( win1 ) , Title : "Age Calculation sample by Ibrahim Abdelelah ") We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Windows) 3 - Select the component (Window/Object Right-To-Left) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Window/Object Right-To-Left) Note : Stop typing when you see the required component is selected Fig. (86) Component Browser – Select the component (Window/Object Right-To-Left) After selecting the component click Ok or press ENTER Fig. (87) Interaction page - Set the properties and enter the required data as in the image above Fig. (88) Form Designer Fig. (89) Goal Desginer - Steps Tree Select the step (Define New Window ( win1 ) , Title : "Age Calculation sample by Ibrahim Abdelelah ") We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Structure Programming) 3 - Select the component (Call Procedure) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Call Procedure) Note : Stop typing when you see the required component is selected Fig. (90) Component Browser – Select the component (Call Procedure) After selecting the component click Ok or press ENTER Fig. (91) Interaction page - Set the properties and enter the required data as in the image above Fig. (92) Form Designer Fig. (93) Goal Desginer - Steps Tree Select the step (procedures) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Structure Programming) 3 - Select the component (Define Procedure) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Define Procedure) Note : Stop typing when you see the required component is selected Fig. (94) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (95) Interaction page - Set the properties and enter the required data as in the image above Fig. (96) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (97) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (98) Interaction page - Set the properties and enter the required data as in the image above Fig. (99) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (100) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (101) Interaction page - Set the properties and enter the required data as in the image above Fig. (102) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (103) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (104) Interaction page - Set the properties and enter the required data as in the image above Fig. (105) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (106) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (107) Interaction page - Set the properties and enter the required data as in the image above Fig. (108) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (109) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (110) Interaction page - Set the properties and enter the required data as in the image above Fig. (111) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (String To Numeric) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (String To Numeric) Note : Stop typing when you see the required component is selected Fig. (112) Component Browser – Select the component (String To Numeric) After selecting the component click Ok or press ENTER Fig. (113) Interaction page - Set the properties and enter the required data as in the image above Fig. (114) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Control Structure) 3 - Select the component (IF Statement) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (IF Statement) Note : Stop typing when you see the required component is selected Fig. (115) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (116) Interaction page - Set the properties and enter the required data as in the image above Fig. (117) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (118) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (119) Interaction page - Set the properties and enter the required data as in the image above Fig. (120) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (121) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (122) Interaction page - Set the properties and enter the required data as in the image above Fig. (123) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Control Structure) 3 - Select the component (IF Statement) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (IF Statement) Note : Stop typing when you see the required component is selected Fig. (124) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (125) Interaction page - Set the properties and enter the required data as in the image above Fig. (126) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (127) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (128) Interaction page - Set the properties and enter the required data as in the image above Fig. (129) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (130) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (131) Interaction page - Set the properties and enter the required data as in the image above Fig. (132) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (133) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (134) Interaction page - Set the properties and enter the required data as in the image above Fig. (135) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (136) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (137) Interaction page - Set the properties and enter the required data as in the image above Fig. (138) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (139) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (140) Interaction page - Set the properties and enter the required data as in the image above Fig. (141) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Control Structure) 3 - Select the component (IF Statement) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (IF Statement) Note : Stop typing when you see the required component is selected Fig. (142) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (143) Interaction page - Set the properties and enter the required data as in the image above Fig. (144) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (145) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (146) Interaction page - Set the properties and enter the required data as in the image above Fig. (147) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (148) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (149) Interaction page - Set the properties and enter the required data as in the image above Fig. (150) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Control Structure) 3 - Select the component (IF Statement) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (IF Statement) Note : Stop typing when you see the required component is selected Fig. (151) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (152) Interaction page - Set the properties and enter the required data as in the image above Fig. (153) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (154) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (155) Interaction page - Set the properties and enter the required data as in the image above Fig. (156) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Control Structure) 3 - Select the component (IF Statement) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (IF Statement) Note : Stop typing when you see the required component is selected Fig. (157) Component Browser – Select the component (IF Statement) After selecting the component click Ok or press ENTER Fig. (158) Interaction page - Set the properties and enter the required data as in the image above Fig. (159) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (GUI Application) 3 - Select the component (Show Message) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Show Message) Note : Stop typing when you see the required component is selected Fig. (160) Component Browser – Select the component (Show Message) After selecting the component click Ok or press ENTER Fig. (161) Interaction page - Set the properties and enter the required data as in the image above Fig. (162) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (163) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (164) Interaction page - Set the properties and enter the required data as in the image above Fig. (165) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (166) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (167) Interaction page - Set the properties and enter the required data as in the image above Fig. (168) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Assignment) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Assignment) Note : Stop typing when you see the required component is selected Fig. (169) Component Browser – Select the component (Assignment) After selecting the component click Ok or press ENTER Fig. (170) Interaction page - Set the properties and enter the required data as in the image above Fig. (171) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Numeric To String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Numeric To String) Note : Stop typing when you see the required component is selected Fig. (172) Component Browser – Select the component (Numeric To String) After selecting the component click Ok or press ENTER Fig. (173) Interaction page - Set the properties and enter the required data as in the image above Fig. (174) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Numeric To String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Numeric To String) Note : Stop typing when you see the required component is selected Fig. (175) Component Browser – Select the component (Numeric To String) After selecting the component click Ok or press ENTER Fig. (176) Interaction page - Set the properties and enter the required data as in the image above Fig. (177) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Numeric To String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Numeric To String) Note : Stop typing when you see the required component is selected Fig. (178) Component Browser – Select the component (Numeric To String) After selecting the component click Ok or press ENTER Fig. (179) Interaction page - Set the properties and enter the required data as in the image above Fig. (180) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (ALL Trim) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (ALL Trim) Note : Stop typing when you see the required component is selected Fig. (181) Component Browser – Select the component (ALL Trim) After selecting the component click Ok or press ENTER Fig. (182) Interaction page - Set the properties and enter the required data as in the image above Fig. (183) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (ALL Trim) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (ALL Trim) Note : Stop typing when you see the required component is selected Fig. (184) Component Browser – Select the component (ALL Trim) After selecting the component click Ok or press ENTER Fig. (185) Interaction page - Set the properties and enter the required data as in the image above Fig. (186) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (ALL Trim) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (ALL Trim) Note : Stop typing when you see the required component is selected Fig. (187) Component Browser – Select the component (ALL Trim) After selecting the component click Ok or press ENTER Fig. (188) Interaction page - Set the properties and enter the required data as in the image above Fig. (189) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (190) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (191) Interaction page - Set the properties and enter the required data as in the image above Fig. (192) Interaction page - Set the properties and enter the required data as in the image above Fig. (193) Interaction page - Set the properties and enter the required data as in the image above Fig. (194) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (195) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (196) Interaction page - Set the properties and enter the required data as in the image above Fig. (197) Interaction page - Set the properties and enter the required data as in the image above Fig. (198) Interaction page - Set the properties and enter the required data as in the image above Fig. (199) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (200) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (201) Interaction page - Set the properties and enter the required data as in the image above Fig. (202) Interaction page - Set the properties and enter the required data as in the image above Fig. (203) Interaction page - Set the properties and enter the required data as in the image above Fig. (204) Goal Desginer - Steps Tree Select the step (procedures) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Structure Programming) 3 - Select the component (Define Procedure) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Define Procedure) Note : Stop typing when you see the required component is selected Fig. (205) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (206) Interaction page - Set the properties and enter the required data as in the image above Fig. (207) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Button Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Button Class) Note : Stop typing when you see the required component is selected Fig. (208) Component Browser – Select the component (Button Class) After selecting the component click Ok or press ENTER Fig. (209) Interaction page - Set the properties and enter the required data as in the image above Fig. (210) Interaction page - Set the properties and enter the required data as in the image above Fig. (211) Interaction page - Set the properties and enter the required data as in the image above Fig. (212) Goal Desginer - Steps Tree Select the step (procedures) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Structure Programming) 3 - Select the component (Define Procedure) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Define Procedure) Note : Stop typing when you see the required component is selected Fig. (213) Component Browser – Select the component (Define Procedure) After selecting the component click Ok or press ENTER Fig. (214) Interaction page - Set the properties and enter the required data as in the image above Fig. (215) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Get Date) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Get Date) Note : Stop typing when you see the required component is selected Fig. (216) Component Browser – Select the component (Get Date) After selecting the component click Ok or press ENTER Fig. (217) Interaction page - Set the properties and enter the required data as in the image above Fig. (218) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Date To String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Date To String) Note : Stop typing when you see the required component is selected Fig. (219) Component Browser – Select the component (Date To String) After selecting the component click Ok or press ENTER Fig. (220) Interaction page - Set the properties and enter the required data as in the image above Fig. (221) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Sub String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Sub String) Note : Stop typing when you see the required component is selected Fig. (222) Component Browser – Select the component (Sub String) After selecting the component click Ok or press ENTER Fig. (223) Interaction page - Set the properties and enter the required data as in the image above Fig. (224) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (225) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (226) Interaction page - Set the properties and enter the required data as in the image above Fig. (227) Interaction page - Set the properties and enter the required data as in the image above Fig. (228) Interaction page - Set the properties and enter the required data as in the image above Fig. (229) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Sub String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Sub String) Note : Stop typing when you see the required component is selected Fig. (230) Component Browser – Select the component (Sub String) After selecting the component click Ok or press ENTER Fig. (231) Interaction page - Set the properties and enter the required data as in the image above Fig. (232) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (233) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (234) Interaction page - Set the properties and enter the required data as in the image above Fig. (235) Interaction page - Set the properties and enter the required data as in the image above Fig. (236) Interaction page - Set the properties and enter the required data as in the image above Fig. (237) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Variables) 3 - Select the component (Sub String) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Sub String) Note : Stop typing when you see the required component is selected Fig. (238) Component Browser – Select the component (Sub String) After selecting the component click Ok or press ENTER Fig. (239) Interaction page - Set the properties and enter the required data as in the image above Fig. (240) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (241) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (242) Interaction page - Set the properties and enter the required data as in the image above Fig. (243) Interaction page - Set the properties and enter the required data as in the image above Fig. (244) Interaction page - Set the properties and enter the required data as in the image above Fig. (245) Goal Desginer - Steps Tree Select the step (Start Here) We will start now new interaction process to generate new steps to our steps tree. The slow way (Using Mouse): 1 - Click Interact to open the components browser 2 - Select the domain (Classes) 3 - Select the component (Textbox Class) The fast way (Using Keyboard shortcuts): 1 - Get the component using its name by typing (Textbox Class) Note : Stop typing when you see the required component is selected Fig. (246) Component Browser – Select the component (Textbox Class) After selecting the component click Ok or press ENTER Fig. (247) Interaction page - Set the properties and enter the required data as in the image above Fig. (248) Interaction page - Set the properties and enter the required data as in the image above Fig. (249) Interaction page - Set the properties and enter the required data as in the image above Fig. (250) Goal Desginer - Final Steps Tree 3 - Final Steps Tree The First Step Define New Window ( win1 ) , Title : "Age Calculation sample by Ibrahim Abdelelah " Window Events Window Properties win1.Center ( ) Window Controls Define Label ( lbl1 ) , Caption : "DD" Label Events Label Properties Define Label ( lbl2 ) , Caption : "MM" Label Events Label Properties Define Label ( lbl3 ) , Caption : "YYYY" Label Events Label Properties Define TextBox ( text1 ) TextBox EVENTS TextBox Properties Define TextBox ( text2 ) TextBox EVENTS TextBox Properties Define TextBox ( text3 ) TextBox EVENTS TextBox Properties Define Label ( lbl5 ) , Caption : "Date of birth" Label Events Label Properties Define Label ( lbl6 ) , Caption : "Today Date" Label Events Label Properties Define TextBox ( text4 ) TextBox EVENTS TextBox Properties Define TextBox ( text5 ) TextBox EVENTS TextBox Properties Define TextBox ( text6 ) TextBox EVENTS TextBox Properties Define TextBox ( text7 ) TextBox EVENTS TextBox Properties Define TextBox ( text8 ) TextBox EVENTS TextBox Properties Define TextBox ( text9 ) TextBox EVENTS TextBox Properties Define New Button ( btn1 ) , Caption : "Calculate" Button Events Event: ON CLICK : Action calc Button Properties Define Label ( L ) , Caption : "Age" Label Events Label Properties Define New Button ( btn2 ) , Caption : "Close" Button Events Event: ON CLICK : Action myexit Button Properties End Of Window Right-To-Left, Window "Win1" Call Procedure dd Activate window procedures Define Procedure calc Code Block t1 = CONVERT win1.text1.value TO Numeric t2 = CONVERT win1.text2.value TO Numeric t3 = CONVERT win1.text3.value TO Numeric t4 = CONVERT win1.text4.value TO Numeric t5 = CONVERT win1.text5.value TO Numeric t6 = CONVERT win1.text6.value TO Numeric IF ( t4>t1 ) Code Block t1 = t1+30 t2 = t2-1 END OF IF STATEMENT IF ( t5>t2 ) Code Block t3 = t3-1 t2 = t2+12 END OF IF STATEMENT p = t1-t4 p1 = t2-t5 p2 = t3-t6 IF ( p>=30 ) Code Block p = p-30 p1 = p1+1 END OF IF STATEMENT IF ( p1>12 ) Code Block p2 = p2+1 END OF IF STATEMENT IF ( t3<=0 .or. t6<=0 .or. p2<0 .or. p1><0 .or. t6>t3 .or. p<0 .or. t4>31 .or. (t4>29 .and. t5=2 ) .o Start Here Show Message "Invalid parameters , check your data !!!" Title "Sorry" Type: Message Info p = 0 p1 = 0 p2 = 0 END OF IF STATEMENT p = CONVERT p TO STRING p1 = CONVERT p1 TO STRING p2 = CONVERT p2 TO STRING p = All Trim p p1 = All Trim p1 p2 = All Trim p2 win1.text7.Value := p win1.text8.Value := p1 win1.text9.Value := p2 End of Procedure Define Procedure myexit Code Block win1.Release ( ) End of Procedure Define Procedure dd Code Block date = System Date of today date = CONVERT Date date TO String y = Sub String of date From 7 Count 10 win1.text3.Value := y m = Sub String of date From 1 Count 2 win1.text2.Value := m d = Sub String of date From 4 Count 2 win1.text1.Value := d win1.text4.SetFocus ( ) End of Procedure 4 - Application during the runtime Fig. (251) Application during the runtime Fig. (252) Application during the runtime
|