Current(Integer)
Current(Integer)
Characteristic |
Description |
---|---|
Icon |
|
Availability |
Repeating study events, repeating forms, and repeating sections. |
Return type and description |
Allows you to choose the instance relative to the current instance of the repeating study object. This method skips deleted instances. |
Syntax |
NameOfStudyObject.Current(relativeIndex) |
Parameters |
|
Example |
If form RefName is ConMed: ConMed.Current(-1) |
Purpose |
Use Current with the relative index to compare values across repeating study events and forms. For example, to confirm that the DOV for each unexpected visit is after the DOV for the previous visit, use the following expression: value = _CompareDates(this.Current().frmDOV.itmDOV.Value, this.Current(-1).frmDOV.itmDOV.Value) when value = -1 issue query on this.Current().frmDOV.itmDOV: DOV for this visit must be later than the previous visit. |