B
Bill Wood
Guest
All of the items in the Data Access Statements can apply to fields retrieved from a database. They represent different aspects, primitive operations, or combinations of primitives. I think UPDATE is clear to you. SET can be used, in one example, for a new record where there is current record values you want to update (so you don't need the DISPLAY from the record buffer to the screen buffer. ). A common use of PROMPT-FOR, by itself; is to just get user input. (Eg to "prompt for" a number of years to create a recover or for "OK to continue?"). But remember these all combine into the more complex operations. You can think of it a little like this: SET is a combination of PROMPT-FOR and ASSIGN UPDATE is a combination of DISPLAY, PROMPT-FOR and ASSIGN. That means, SET will display a blank field to enter value. but UPDATE will display the existing value in the variable or field and allow user to modify it. It would help to understand more about your specific use case and version or OpenEdge you are using. In particular is this a Character mode application, a procedural GUI application, something written in the UIB or AppBuilder for event-driven UI, or what? (What version of the compiler is useful as well). Sent from Bill's iPhone.
Continue reading...
Continue reading...