-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadMe.txt
More file actions
20 lines (16 loc) · 883 Bytes
/
ReadMe.txt
File metadata and controls
20 lines (16 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Name: YieldExample
Author: Jerry Fawcett, Senior Developer Support Engineer
Description: A simple Synergy .NET Visual Studio project that
demonstrates how to use the YEILD statement.
The YIELD statement was added in version 10.1.1.
This simple example reads a file
(as coded the DBLDIR:syntxt.ism) and demonstrates the
syntax to call a method which contains the yield statement.
The example has two methods that call into a routine
which returns either yield mreturn value or yield exit.
GetAllRecs method - reads all records in the file and
causes the yeild mreturn value to return a record at a time.
Get10Recs method - reads 10 records from the file and then
call yield exit to return.
The records are displayed in a DataGridView control.
Requirements: Visual Studio 2015 and Synergy 10.1.1 or higher.