Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 08 SEP 2006 05:08:31PM Richard S Todd wrote:

Hello,

How would I get the Keylist from the Btree.Extract Function to display in popup?

Thanks

Richard


At 08 SEP 2006 06:51PM Karen Oland wrote:

using code something like this?

(from an existing pgm, you'll need to init any variables used, of course – and the call pop.up() is an rbasic wrapper around popup that uses the same parameters as the AREV pop.up() function)

    btree.extract( search, file_name, dict_handle, keys, "S" )
  • if keys found, check for more than one. If single key,
  • return it, else display a popup for selection.
       if index( keys, vm$, 1 ) then
          popup=xlate( "POPUPS", popup_name, null$, "X" )
          : ' - matching: ' : quote(in_value)
          if popup then
             convert @VM to @FM in keys
             return_value=pop.up( popup, popup, "@":popup, keys, popup, popup, popup, Title, popup, popup, popup, popup )
             if len( return_value ) else status()=3  ;* no selection
          end else return_value=keys   ;* no popup, return first
       end else return_value=keys           ;* single key found

end

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/7f13cc42b9de22c8852571e30074230e.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1