prompt-for

DoDaDew

New Member
This code uses a frame with all the database fields on it. Then it uses "promp-for" for the first part of the frame. If everything is good then a record is created and rest is displayed. Now I need a "F5" on one of those field in the first part of the frame. My problem is that I can't get the value to display on the frame. Since the record at this moment is not available yet. I don't like how the code is written, but that is out of question now. How can I put a value in that field?

thanks.
 
To display a value in a database field when you do not have a record yet, you can use: fieldName:SCREEN-VALUE IN FRAME frameName = "some value".

"some value" can also be a variable: fieldName:SCREEN-VALUE IN FRAME frameName = vMyVariable.

And if memory serves me well from the good old days before attributes and methods there is also something like: DISPLAY "some value" @ fieldName WITH FRAME frameName.
 
Back
Top