Partilhar via


FormDataSource.id Method

Definition

Retrieves the ID of the data source.

public:
 override int id();
public override int id ();
override this.id : unit -> int
Public Overrides Function id () As Integer

Returns

The ID of the data source.

Remarks

The following example converts form data sources to their data source IDs.

static client DataSourceNumber fds2fdsNo(FormDataSource _fds) 
{ 
    Form  form = _fds.formRun().form(); 
    int   i; 
    for (i=1;i<=form.dataSourceCount();i++) 
    { 
        if (_fds.formRun().dataSource(i).id() == _fds.id()) 
        { 
            return i; 
        } 
    } 
    return 0; 
}

Applies to