One of the great new features in PlanSwift9 is the ability to create reusable dialogs using stored items and properties, simply design an item with only the desired properties set asĀ Input.


Source Code:

var
  adlg: String;
  thenewcolor: Integer;

Begin
  thenewcolor := -1;
  adlg := ChildItem(ParentItem(ItemPath), 3);
  if EditItem(adlg) then
    thenewcolor := GetPropertyResult(adlg, 'Please Select a Color');

  output(thenewcolor);
end;