Shift. DORIC 9.65, INFO-Text software
বিজ্ঞাপন
বিজ্ঞাপন
SHIFT
SHIF
T item-1 [TO] item-2 item-3 [item-4]
shift the contents of an item by the specified number of bits
arguments notes
item-1 any INFO item (not literal)
item-2 any INFO item (not literal)
item-3 number of bits to shift
item-4 fill character. Default is blank.
n
The shift command moves item-1 to item-2 offset by the number of bits specified by item-3. If item 3 > 0 then the shift is to the right. If item-3 < 0 then the shift is to the left.
Item-2 is truncated or filled at left or right as necessary.
n item-3 specifies the number of bits to shift: a positive value (the default) will move to the right, a negative value to the left.
n
There are 8 bits to 1 byte (character). Therefore to move an item 2 characters to the right, item-3 should be set to
16.
examples
SHIFT LASTNAME TO LASTNAME 16
The contents of LASTNAME will be moved 2 characters to the right.
SHIFT LASTNAME TO $CHR1 –8.
The contents of LASTNAME will be moved to $CHR1 with the 1 st
character truncated.
INFO Reference Manual Commands 481
ডাউনলোড
বিজ্ঞাপন