05-18-2005
"select" function sequence
Hi folks,
As we all know, the "select" function give a number to each element as the number of elements in the select.
for example:
I have a program which ask a user to select a language:
===============================================================================
Please select the primary language
===============================================================================
1) Arabic 6) Hebrew 11) Portuguese
2) Chinese 7) Indic 12) Russian
3) French 8) Italian 13) Spanish
4) German 9) Japanese 14) Other
5) Greek 10) Korean 15) Quit language menu
The select has 15 elements and therefore,the select gives a number from 1 to 15 to each element.
My question is:
I want to assign the number "99" to the option "Quit language menu".
Is it possible?
Is it possible to influence on the select sequence that if i have n elements in the select ,and i want to add a new element ,the next element (n+1) won't get the number (n+1)?
Thanks in advance.
Nir
9 More Discussions You Might Find Interesting
1. Programming
i have a program using the select function but i want to convert it to poll... how can i do this? thanks in advance... :) (1 Reply)
Discussion started by: rbolante
1 Replies
2. UNIX for Advanced & Expert Users
I've tried \e, \033, ^[, they doesn't work with tcsh on Solaris.
Anyone could give a help?
Thanks,
WP (2 Replies)
Discussion started by: modemer
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
4. HP-UX
Hi people!
I've got this own library:
--------------------------------------------
Personal.h
--------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdarg.h>
#include <string.h> ... (0 Replies)
Discussion started by: donatoll
0 Replies
5. Shell Programming and Scripting
Hi everyone,
I`ll try to be most clear I can explaining my help request.
I have 2 folders
Folder A-->This folder receives files through FTP constantly
Folder B-->The files from Folder A are unzipped and then processed in Folder B
Sometimes Folder A doesn`t contain all... (2 Replies)
Discussion started by: cgkmal
2 Replies
6. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT DEBIAN
html::formfu::element::datetime
HTML::FormFu::Element::DateTime(3pm) User Contributed Perl Documentation HTML::FormFu::Element::DateTime(3pm)
NAME
HTML::FormFu::Element::DateTime - Date / Time combo field
SYNOPSIS
---
elements:
- type: DateTime
name: start_datetime
label: 'Start:'
auto_inflate: 1
DESCRIPTION
Sub-class of Date element, providing extra "hour" and "minute" Select menus.
METHODS
hour
Arguments: \%setting
Set values effecting the "hour" select menu. Known keys are:
name
Override the auto-generated name of the select menu.
default
Set the default value of the select menu
prefix
Arguments: $value
Arguments: @values
A string or arrayref of strings to be inserted into the start of the select menu.
Each value is only used as the label for a select item - the value for each of these items is always the empty string ''.
prefix_loc
Arguments: $localization_key
Arguments: @localization_keys
A localized string or arrayref of localized strings to be inserted into the start of the select menu.
Each value is localized and then only used as the label for a select item - the value for each of these items is always the empty string
''.
Use "prefix_loc" insted of "prefix".
minute
Arguments: \%setting
Set values effecting the "minute" select menu. Known keys are:
name
Override the auto-generated name of the select menu.
default
Set the default value of the select menu
prefix
Arguments: $value
Arguments: @values
A string or arrayref of strings to be inserted into the start of the select menu.
Each value is only used as the label for a select item - the value for each of these items is always the empty string ''.
prefix_loc
Arguments: $localization_key
Arguments: @localization_keys
A localized string or arrayref of localized strings to be inserted into the start of the select menu.
Each value is localized and then only used as the label for a select item - the value for each of these items is always the empty string
''.
Use "prefix_loc" insted of "prefix".
second
Arguments: \%setting
Set values effecting the "second" select menu. Known keys are:
name
Override the auto-generated name of the select menu.
default
Set the default value of the select menu
prefix
Arguments: $value
Arguments: @values
A string or arrayref of strings to be inserted into the start of the select menu.
Each value is only used as the label for a select item - the value for each of these items is always the empty string ''.
prefix_loc
Arguments: $localization_key
Arguments: @localization_keys
A localized string or arrayref of localized strings to be inserted into the start of the select menu.
Each value is localized and then only used as the label for a select item - the value for each of these items is always the empty string
''.
Use "prefix_loc" insted of "prefix".
field_order
Arguments: @fields
Default Value: ['day', 'month', 'year', 'hour', 'minute']
Specify the order of the date fields in the rendered HTML.
If you want the "second" selector to display, you must set both "/field_order" and strftime yourself. Eg:
elements:
type: DateTime
name: foo
strftime: '%d-%m-%Y %H:%M:%S'
field_order: ['day', 'month', 'year', 'hour', 'minute', 'second']
Not all fields are required. No single field can be used more than once.
CAVEATS
See "CAVEATS" in HTML::FormFu::Element::Date
SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Date HTML::FormFu::Element::_Field, HTML::FormFu::Element::Multi,
HTML::FormFu::Element::Block, HTML::FormFu::Element
HTML::FormFu
AUTHOR
Carl Franks, "cfranks@cpan.org"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 HTML::FormFu::Element::DateTime(3pm)