Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Demo Tools > demo_choose

demo_choose

create a dialog box for the choice of options

Syntax

num = demo_choose(fil)

Arguments

fil

String containing the path of the binary file.

num

a number of the selected line.

Description

The function demo_choose create a dialog box for the choice of options. It takes as argument the binary file 'fil'. It shall contain the variables 'choice', an array of text within bracket (the different options), and 'titl', the title of the dialog box. The function demo_choose returns the number of line chosen in the options array.

Examples

choice = ['Continuous time';'Discrete time'];
titl = 'Select time domain';
save(fullfile(TMPDIR, "example.bin"));
[n]=demo_choose(fullfile(TMPDIR, "example.bin"));
select n
  case 0
    disp("Cancel")
  case 1
    disp("Choice: 1")
  case 2
    disp("Choice: 2")
end

See also

  • x_choose — interactive window choice (modal dialog)
Report an issue
<< demo_begin Demo Tools demo_compiler >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 14:57:46 CET 2019