Modify

Opened 15 years ago

Closed 14 years ago

#1889 closed Feature Request (Rejected)

_ArrayDisplay optionaly display columns in hex.

Reported by: 436602556274@… Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:

Description

Feature reuest for function: _ArrayDisplay(Const ByRef $avArray ....

should recieve an additional optional parameter [,$sHexDisplay] ...

Parameter $HexDisplay in the form of a string of "0" and "1".
Like this
$sHexDisplay="01001" ::

means columns 2+5 should displayed in hex, all other normal.
Columns higher than the length of the string defaults to normal display.

3 Lines of Code (one of them is only a comment line)
Modified header:

  Func _ArrayDisplay(Const ByRef $avArray, $sTitle = "Array: ListView Display", _ 
$iItemLimit = -1,  $iTranspose = 0, $sSeparator = "", $sReplace = "|", _
 $sHeader = "", '''$sHexDisplay = 0''')

immediate before(/after) comment" ; Set header up"

; build a string for each column "1" for hex- or  "0" or normal- display
Local $vHex = $sHexDisplay&_stringrepeat(0,$iSubMax-stringlen($sHexDisplay))


and after behind the comment:" ; Add to text array"

If stringmid($vHex,$j+1,1)  <> 0 Then $vTmp = _StringToHex($vTmp)


This function seems to be mainly a testing tool, so i think, it for other users a helpful feature too.

Attachments (0)

Change History (4)

comment:1 by TicketCleanup, 15 years ago

Version: 3.3.6.1

Automatic ticket cleanup.

comment:2 by mvg, 15 years ago

_ArrayDisplay() main function it to display the array data as it is.
Any special re-formatting of the array data falls outside its main purpose.

(or: user-code should take care of that before feeding the array(adjusted copy) to _ArrayDiplay().)

comment:3 by 436602556274@…, 15 years ago

I think to display in hex is only one way to display the real values even those changed by display functions. The current version didn't display as is, it displays only what would be displayed, due to interpreting control characters. Results of a any StringRexExp to re-format only to see what is really there is not very convenient, but anyway.

comment:4 by trancexx, 14 years ago

Resolution: Rejected
Status: newclosed

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.