Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Report Namespace / DataSource Class / GetRecordSource Method
If set to true, user will be prompted for the parameters before the method returns. If set to false, the default values will be used.

In This Topic
    GetRecordSource Method
    In This Topic
    Processes the PARAMETERS clause in the RecordSource string and returns the result.
    Syntax
    'Declaration
     
    Public Function GetRecordSource( _
       ByVal prompt As Boolean _
    ) As String
    public string GetRecordSource( 
       bool prompt
    )

    Parameters

    prompt
    If set to true, user will be prompted for the parameters before the method returns. If set to false, the default values will be used.

    Return Value

    The string (SQL statement or table name) that can be used to open a recordset.
    Remarks

    This property is related to the RecordSource property. The RecordSource property sets or returns a string that specifies the source dataset for the report, and it may contain a PARAMETERS clause that causes C1Report to prompt the user for information.

    If you wanted to use the value of the RecordSource property to open a dataset directly from your program, you would have to parse the PARAMETERS clause yourself.

    See Also