Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listdisplay for Records

Status
Not open for further replies.

manelandrea

Programmer
Jul 10, 2017
34
PH
Hi, would anyone know how to display record on listdisplay? I was trying something like this:

Code:
event rxmsg : success_reply
	var list_size : n3
	var list_name[totalItems-1] : a40
	var list_price[totalItems-1] : a40
	rxmsg  list_size,list_name[]:list_price[]
	window totalItems-1, 42, "Details"
	listdisplay 1, 2,list_size,  @list_name : @list_price
	waitforclear
	
	infomessage list_size
	infomessage list_name[1] 
endevent

but nothing is shown, is it possible to display list of record? Thank you!
 
If you remove the listdisplay and waitforclear so that it just goes straight for the infomessage, does anything display? I've never seen the syntax you're using, though given the lack of documentation on a lot of things, it might be valid.
 
Also, why are you doing totalItems-1 when everything in micros is indexed starting at 1?

I checked, and you shouldn't be putting the @ symbol in front of list_name and list_price as far as I can tell.
 
Just did a quick test and this works fine for me:

Code:
EVENT RXMSG : DISPLAY_CHECKS
	VAR COUNT : N9
	VAR CHECKSEQS[200] : N9
	VAR CHECKNUMS[200] : N9
	VAR GUESTNAMES[200] : A200
	VAR PICKUPTIMES[200] : A200
	VAR CHECKSTATUS[200] : A200
	RXMSG COUNT, CHECKSEQS[] : CHECKNUMS[] : GUESTNAMES[] : PICKUPTIMES[] : CHECKSTATUS[]

	WINDOW 12,78
	LISTDISPLAY 1, 2, COUNT, GUESTNAMES
	WAITFORCLEAR
....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top