Modify

Opened 14 years ago

Closed 13 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 Changed 14 years ago by TicketCleanup

  • Version 3.3.6.1 deleted

Automatic ticket cleanup.

comment:2 Changed 14 years ago by mvg

_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 Changed 14 years ago by 436602556274@…

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 Changed 13 years ago by trancexx

  • Resolution set to Rejected
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Gary.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.