Highlighted
Absent Member.
Absent Member.
633 views

gridview data processing

Jump to solution

In the 2017 Visual Studio with COBOL processing I have not been able to find a good solution to process numeric data entered in the gridview. I'll describe a situation. With a three byte field described in gridview as numeric (or no formatting) you can't target the data entered in the gridview to a numeric field such as "pic 999". Currently I use "pic XXX" and have to accommodate all the variations of how the data might be input. Anybody have a simple solution?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

The COBOL intrinsic function NUMVAL will do the trick within one statement

View solution in original post

0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

The COBOL intrinsic function NUMVAL will do the trick within one statement

View solution in original post

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.
A good solution is using WPF with Data Binding. Data Binding will do all conversions and also tests that entered values are numeric.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.