09-07-2006
define "push or pop"? - you can iterate or increment or decrement the element(s) of an array. We need more information on what you want.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
We just purchased a MOD30 disk array strage system.
We have 15 drives and 2 hot spares.
We're running a database app with 8 data sets.
I'm trying to get the best i/o speed out of my disk configuration.
Right now I have 3 raid5 arrays setup. This seems to offer the same performance as having the... (1 Reply)
Discussion started by: ncmurf00
1 Replies
2. UNIX for Dummies Questions & Answers
When setting a variable, how would I go about making each result a new line?
A very simple example would be:
theFolders=`(ls -l /)`
echo $theFolders
This gives me all the folders as one variable and I need to be able to use each as its own variable. I'm sure I have to make this into an... (2 Replies)
Discussion started by: TheCrunge
2 Replies
3. Shell Programming and Scripting
suppose my @{$data1{$callid}}; cotains
one two three
three five six
one two three
of random patterns but each item is separated by white space or tab,
Below code extract and get rid of the whitespace perfectly so that it shows now like this
onetwothree
threefivesix... (2 Replies)
Discussion started by: hankooknara
2 Replies
4. Shell Programming and Scripting
I need to implement the following logic and need some expert help from UNIX community.
These are the steps in my Shell script.
1. Analyze a file.
2. Extract all the ID's in that file.
3. Use the ID's from #2 to run another filter on the file.
I've implemented # 1 and 2 using... (3 Replies)
Discussion started by: katwala
3 Replies
5. Shell Programming and Scripting
Greetings,
DISCLAIMER: My shell scripting is rusty so my question may be borderline stupid. You've been warned.
I need to create a script that a) lists the content of zip files in a directory and b) sends out an `exception` report. My ZIP files contain a control file (for load check). I want... (2 Replies)
Discussion started by: alan
2 Replies
6. Programming
Im new to C programming and am having trouble understanding the output of this code
int array={4,5,8,9,8,1,0,1,9,3};
int *array_ptr;
int main()
{
array_ptr=array;
while((*array_ptr) != 0)
array_ptr++;;
printf("%d\n", array_ptr - array);
return(0);
}
the output is 6 but I... (2 Replies)
Discussion started by: sacat
2 Replies
7. UNIX for Dummies Questions & Answers
I have attempted to create an array consisting of two items: #0 and #1.
I am able to print the two items corrctly:
arr=(hello "my name is")
echo ${arr}
hello
echo ${arr}
my name is
However, when I try to run a for loop to print both objects:
for i in ${arr
}
do
echo $i
done
I get:... (2 Replies)
Discussion started by: locoroco
2 Replies
8. Shell Programming and Scripting
Hi,
I am trying to do something similar to the for loop example from KSH For Loop Array: Iterate Through Array Values
$: cat y.ksh
#!/bin/ksh
# set array called nameservers
set -A nameservers 192.168.1.1 192.168.1.5 202.54.1.5
# print all name servers
for i in ${nameservers}
do
... (3 Replies)
Discussion started by: newbie_01
3 Replies
9. Shell Programming and Scripting
Inside a zsh function, I create a local array with local -a arrayname and a local associative array with local -A arrayname.
I also can create an array using set, like this:
set -A arrayname value1 value2 value3In this form, I can not explicitly declare that an array is associative or... (2 Replies)
Discussion started by: rovf
2 Replies
10. Shell Programming and Scripting
I am trying to assign indexes to an associative array in a for loop but I have to use an eval command to make it work, this doesn't seem correct I don't have to do this with regular arrays
For example, the following assignment fails without the eval command:
#! /bin/bash
read -d "\0" -a... (19 Replies)
Discussion started by: Riker1204
19 Replies
LEARN ABOUT ULTRIX
dwtscrollbarsetslider
DwtScrollBarSetSlider(3Dwt) DwtScrollBarSetSlider(3Dwt)
Name
DwtScrollBarSetSlider - Sets or changes the current size/position parameters of the slider in the scroll bar widget.
Syntax
void DwtScrollBarSetSlider(widget, value, shown, inc,
page_inc, notify)
Widget widget;
int value;
int shown;
int inc, page_inc;
Boolean notify;
Arguments
widget Specifies the scroll bar widget ID.
value Specifies the scroll bar's top thumb (slider) position between DwtNminValue and DwtNmaxValue. The attribute name associated with
this argument is DwtNvalue.
shown Specifies the size of the slider as a value between zero and the absolute value of DwtNmaxValue minus DwtNminValue. The size of
the slider varies, depending on how much of the slider scroll area it represents. This argument sets the DwtNshown attribute
associated with DwtScrollBarCreate.
inc Specifies the amount of button increment and decrement. If this argument is nonzero, the scroll bar widget automatically adjusts
the slider when an increment or decrement action occurs. This argument sets the DwtNinc attribute associated with DwtScrollBar-
Create.
page_inc Specifies the amount of page increment and decrement. If this argument is nonzero, the scroll bar widget automatically adjusts
the slider when an increment or decrement action occurs. This argument sets the DwtNpageInc attribute associated with DwtScroll-
BarCreate.
notify Specifies a boolean value that, when True, indicates a change in the scroll bar value and that the scroll bar widget automati-
cally activates the DwtNvalueChangedCallback with the recent change. If False, no change in the scroll bar's value has occurred
and DwtNvalueChangedCallback is not activated.
Description
The DwtScrollBarSetSlider function sets or changes the currently displayed scroll bar widget slider for the application. The scroll region
is overlaid with a slider bar that is adjusted in size and position using the main scroll bar or set slider function attributes. The step-
ping arrows and the slider are the scroll activator objects providing the user interface syntax ``feel.''
See Also
DwtScrollBarGetSlider(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtScrollBarSetSlider(3Dwt)