beautypg.com

Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual

Page 50

background image

Chapter 11: Primitives

File-based Decoding User Manual

44

LeCroy Corporation

SetAt()

RemoveAt( list, index integer> )

Parameter

Meaning

Default

Value

Comments

list_object list

index integer

Support
Supported by all LeCroy analyzers.

Return value
None.

Comments
This function sets up an element in a list at a given index and fills up the list with new
elements.

Example

list = [0, 1, 2, 3]; 
list += 4;
list += 5; 
SetAt( list, 8, 15, 0xAA ); # now list = [ 0, 1, 2, 3, 4, 5,
0xAA, 0xAA, 15];
...
list = [ 0,1, 2, 3 ];
SetAt( list, 6, 15 ); # now list = [ 0,1, 2, 3, null, null, 15 ];