Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - 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ヘルプ >> Demo Tools > demo_choose

demo_choose

create a dialog box for the choice of options

Calling Sequence

num = demo_choose(fil)

Description

The function demo_choose create a dialog box for the choice of options. It takes as argument the binary file 'fil'. This file is built by a .sce file written like below. It shall contain the variables 'choice', an array of text within bracket (the different options), and 'titl', the title of the dialog box. After that, the .sce file shall save both variables in the binary file in argument. Before the use of demo_choose, the .sce file shall be executed. The function demo_choose returns the number of line chosen in the options array.

Examples

exec('SCI/demos/control/pid/pid_ch_2.sce');
[n]=demo_choose('SCI/demos/control/pid/pid_ch_2.bin');
select n
  case 0
    break
  case 1
    mode(1)
  case 2
    mode(-1)
end

See Also

  • x_choose — 対話的な選択ウインドウ (モーダルダイアログ)
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 Oct 02 13:58:35 CEST 2014