IPWorks 2020 JavaScript Edition

Questions / Feedback?

Records Property

Collection of records in the last response.

Syntax


 getRecords(): DNSRecordList;



Default Value

Remarks

Once the query is complete, a single Response event will fire, and the following properties will contain the results:

StatusCodeThe success or error code of the DNS query.
StatusA standard string interpretation of StatusCode.
RecordsThe Records in the last DNS response.
RecordSourceThe source (type) of records being listed.

Example (Loop through all fields of all records)


For i = 0 to DNSControl.RecordsCount - 1
	For j = 0 to DNSControl.RecordFieldCount(i) - 1
		DNSControl.Records(i).RecordFieldIndex(i) = j
		DoSomethingWith(DNSControl.RecordFieldName(i), DNSControl.RecordFieldValue(i))
	Next j
Next i

This property is read-only and not available at design time.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 JavaScript Edition - Version 20.0 [Build 8292]