--- title: "AbsolutePosition and CursorLocation Properties Example (JScript) | Microsoft Docs" ms.prod: sql ms.prod_service: connectivity ms.technology: connectivity ms.custom: "" ms.date: "01/19/2017" ms.reviewer: "" ms.topic: conceptual dev_langs: - "JScript" helpviewer_keywords: - "AbsolutePosition property [ADO], JScript example" - "CursorLocation property [ADO], JScript example" ms.assetid: bff98617-a6ba-4f41-9c5f-915161e3ea31 author: MightyPen ms.author: genemi --- # AbsolutePosition and CursorLocation Properties Example (JScript) This example demonstrates how the [AbsolutePosition](../../../ado/reference/ado-api/absoluteposition-property-ado.md) property can track the progress of a loop that enumerates all the records of a [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md). It uses the [CursorLocation](../../../ado/reference/ado-api/cursorlocation-property-ado.md) property to enable the **AbsolutePosition** property by setting the cursor to a client cursor. Cut and paste the following code to Notepad or another text editor, and save it as **AbsolutePositionJS.asp**. ``` <%@LANGUAGE="JScript" %> <%// use this meta tag instead of adojavas.inc%>
| AbsolutePosition | Name | Hire Date |
|---|---|---|
| " + rsEmployee.AbsolutePosition + " of " + rsEmployee.RecordCount + " | " // First and last name are in first column. strMessage += "" + rsEmployee.Fields("FirstName") + " "; strMessage += rsEmployee.Fields("LastName") + " " + " | "; // Hire date in second column. strMessage += "" + rsEmployee.Fields("HireDate") + " | "; // End the row. strMessage += "