` Printed Icetips Article

Icetips Article



ABC: Using multiple update procedures
1999-03-30 -- Dennis E. Evans
 
Newsgroups: topspeed.products.c5pe

With ABC you can have multiple update forms,
In the ThisWindow.Run method comment out the
standard code

  Omit('###')
  GlobalRequest = Request
  UpdateYourProcedure
  ReturnValue = GlobalResponse
  ####

 just before that code add a function to call your menu

  Then add this

  Self.AskProcedure = GetFormChoice()

   GlobalRequest = Request
   execute Self.AskProcedure
      UpdateProc_1
      UpdateProc_2
      UpdateProc_3
    end
    ReturnValue = GlobalResponse

I would think you could also do this, but have not tried,

GlobalRequest = Request
execute GetFormChoice()
   UpdateProc_1
    ...
 end
 ReturnValue = GlobalResponse

I had a similar problem recently and I used the current tab to set
the property.   The browse has two tabs, with different fields.
In the Control event, NewSelection for the tab
Brwx.AskProcedure = choice(?CurrentTab).

Hope it helps.

    Dennis



Printed November 21, 2024, 7:35 am
This article has been viewed/printed 35342 times.
Google search has resulted in 8 hits on this article since January 25, 2004.