
! script name: property.d/propentnames
! topic: list info packet entity names.

!A
!A NAME:
!A
!A 	List Property Entities
!A
!A DESCRIPTION:
!A
!A 	This script will list the entity names attached to info packets.
!A
!# see also - htdocs/help.d/property.htm

Stat=ChangeLabelStr("ScriptNameStatus","Function: list packet entity names")

DIM Destination$[512]
DIM Answer$[512]
DIM A$[512]
DIM B$[512]
DIM Name$[512]
DIM Class$[512]
DIM Ent_name$[512]
DIM File$[512]

File$= "tempdata"

Start:!
Existing_props:!
Group= GrpOfUserProps
IF NOT GroupCount(Group) THEN Leave

stat= OutputString(File$,CHR$(10),WsNewFile)
FOR I= 1 TO GroupCount(Group)
        Element= GroupElement(Group,I)
        Ent_name$= EntityNameStr(Element)
        Name$= UserDataStr(Element,"Name:")
        Class$= UserDataStr(Element,"Class name:")
        A$= VAL$(I)&") "&Ent_name$&"  :  "&Class$&" : "&Name$&CHR$(10)
        stat= OutputString(File$,A$,WsAppend)
NEXT Item
stat= OutputString(File$,CHR$(10),WsAppend)
Stat=MessageFileBox(File$,"INFO PACKET NAME LIST")
Stat= DeleteEntity(Group)


Leave:!
Stat=SetInputFormat("n4","")
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END


