SET CURRENTSET

SET CURRENTSET

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

SET CURRENTSET

Makes a specified result set the current set.

Syntax

SET CURRENTSET setname

Parameters

setname

The name of an existing result set.

Comments

Normally, the current set is the result set produced as a result of the last FIND command executed. SET CURRENTSET enables you to select another existing result set to use as the current set.

The SET CURRENTSET command takes effect immediately upon parsing or compilation, not just when the compiled program is executed.

The SET CURRENTSET command is not affected by the SET RESET and SET RESTORE commands.

Example

procedure test3 (a,b)
 if a = b
  find Employees -> EmpSet
 else
  find Departments -> DeptSet
 endif
 if a = b
  set currentset EmpSet
  let a = LastName
 endif

The SET CURRENTSET command ensures that the correct set is recognized as the current set.

Was this article helpful?
5 out of 5 stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish