Template:SimpleDialog: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<code lang="pas"> PROCEDURE Example; VAR i : INTEGER; BEGIN i := IntDialog('Enter an integer:', '0'); IF NOT DidCancel THEN BEGIN i := i*3; Message(i); END; END; RUN(Example);...") |
(No difference)
|
Revision as of 13:37, 15 July 2014
PROCEDURE Example; VAR i : INTEGER; BEGIN i := IntDialog('Enter an integer:', '0'); IF NOT DidCancel THEN BEGIN i := i*3; Message(i); END; END; RUN(Example);
Python
def Example(): i = vs.IntDialog('Enter an integer:', '0'); if not vs.DidCancel(): i = i*3 vs.Message(i) Example()