Request (Object)

Member of:

Requests collection

Description:

Represents a request line item.

Example:

This example prints the display name and data type of each item on the request line:

var count = ActiveDocument.Sections["Query"].Requests.Count
for(i=1;i<=count;i++)
{
       myRequest = ActiveDocument.Sections["Query"].Requests[i]
       switch(myRequest.DataType)
{
                 case 1:
                            myType = "String"
                            break;
                 case 2:
                            myType = "Integer"
                            break;
                 case 3:
                            myType = "Number"
                            break;
                 case 4:
                            myType = "Date"
                            break;
                 default:
                            myType = "Unknown"
}
Console.Write(myRequest.DisplayName +" DataType ="+myType+"\r\n")
}

Methods:

Remove()

Properties:

Read-only: Property SQLName As String

Read-write: Property DataType As BqDataType, Property DisplayName As String, Property SQLName as String, Property Visible As Boolean