Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve temp-table field formatting #242

Closed
gustason opened this issue Oct 2, 2024 · 0 comments · Fixed by #248
Closed

Improve temp-table field formatting #242

gustason opened this issue Oct 2, 2024 · 0 comments · Fixed by #248
Assignees
Labels
enhancement New feature or request

Comments

@gustason
Copy link
Collaborator

gustason commented Oct 2, 2024

For example,

define TEMP-TABLE ttObjectBand NO-UNDO
FIELD ObjectName AS CHARACTER FORMAT "x(15)"
FIELD RunAttribute AS CHARACTER FORMAT "x(15)"
FIELD Sequence AS INTEGER
FIELD Action AS CHAR
FIELD Band AS CHARACTER FORMAT "x(28)"
FIELD InsertSubmenu AS LOGICAL
INDEX key1 AS PRIMARY UNIQUE ObjectName RunAttribute ResultCode Sequence
INDEX key2 Band ObjectName RunAttribute
INDEX key3 Action ObjectName RunAttribute Sequence.

could get formatted to something like this:

DEFINE TEMP-TABLE ttObjectBand NO-UNDO     
FIELD ObjectName    AS CHARACTER FORMAT "x(15)"
FIELD RunAttribute  AS CHARACTER FORMAT "x(15)"
FIELD Sequence      AS INTEGER  
FIELD Action        AS CHAR 
FIELD Band          AS CHARACTER FORMAT "x(28)"
FIELD InsertSubmenu AS LOGICAL       
INDEX key1 AS PRIMARY UNIQUE ObjectName RunAttribute ResultCode Sequence      
INDEX key2 Band ObjectName RunAttribute
INDEX key3 Action ObjectName RunAttribute Sequence.
@gustason gustason added the enhancement New feature or request label Oct 2, 2024
@gustason gustason linked a pull request Oct 2, 2024 that will close this issue
@gustason gustason self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant