Pass values via button in 4GL

Sort:
You are not authorized to post a reply.
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member
    I have a custom header/detail form, and I have included a button on the detail row that calls a second custom header/detail form.  I have a field in the header of first form that I want to pass to the header of the second form for data selection purposes.

    If it matters, I am using the "W" type in the $TRANS section for the button and putting the called form in the Picture area.

    Is there a way for me to pass a value between the two forms via the button?

    Thanks!
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      DOH!  I solved my problem with key numbers.  My brain was locked into a "code" solution rather than thinking about my other options.

      Basically, I created a custom key number using kndef and then referenced that key in the .scr file for the fields I wanted to pass from/to.

      Works like a charm!
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      You are not authorized to post a reply.