Hello,
I've written a DSPF in DDS. In a RPGLE Programme-Code I do a EXFMT on this DSPF. This DSPF has six fields packed(5:2). The user has to write an amount into one of this fields.
There is a further field called Sum. It's the same DSPF but another record. Now I like to refresh the sum field after the user exits one of the input fields so they can see the sum immediately.
I know that there is the possibility to ask for the command keys [fp1] to [fp24] and the return key [enter]. But is there any possibility to ask for a [field exit] handling?
I don't know any command which gives back the [field exit] to the RPGLE-Programme.
Thank you in advance
BR
Matze
PS.: Maybe it would someone help to understand if i post a code how i would do it in VB or VBA (Excel) by using a UserForm:
'sum is a field in the UserForm
Public variable as Double
Private Sub field_Exit(ByVal Cancel As MSForms.ReturnBoolean)
variable = Cdbl(field)
sum = sum + variable
End Sub
I've written a DSPF in DDS. In a RPGLE Programme-Code I do a EXFMT on this DSPF. This DSPF has six fields packed(5:2). The user has to write an amount into one of this fields.
There is a further field called Sum. It's the same DSPF but another record. Now I like to refresh the sum field after the user exits one of the input fields so they can see the sum immediately.
I know that there is the possibility to ask for the command keys [fp1] to [fp24] and the return key [enter]. But is there any possibility to ask for a [field exit] handling?
I don't know any command which gives back the [field exit] to the RPGLE-Programme.
Thank you in advance
BR
Matze
PS.: Maybe it would someone help to understand if i post a code how i would do it in VB or VBA (Excel) by using a UserForm:
'sum is a field in the UserForm
Public variable as Double
Private Sub field_Exit(ByVal Cancel As MSForms.ReturnBoolean)
variable = Cdbl(field)
sum = sum + variable
End Sub
Comment