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 31 AUG 1998 12:37:52PM Greg James, ISIS, Inc. wrote:

I am using a stored procedure for validation & conversion on an editline. I want to use the same procedure for numerous editlines in the same application, without having to modify the code to reflect the specific editline's name.

What is the best way to obtain the control name of the object that contains the data that the validation/conversion is being done on? I have tried to use FOCUS, but that always returns the control name of the next object in the tab order. Thanks.


At 31 AUG 1998 06:31PM Don Bakke wrote:

Greg,

I'm going off the top of my head so I don't know if this is the best way or not. You could create a promoted LOSTFOCUS event and in that set a user-defined propery (i.e. @PREVFOCUS) with the name of the current control. Then your validation code would retrieve it when necessary.

dbakke@srpcs.com

SRP Computer Solutions


At 01 SEP 1998 10:22AM DSig (SigSolutions) wrote:

Lostfocus will have next and gotfocus will have current.

In the case of LostFocus you could look at the ctrlmap and see what the previous ctrl in the list was .. yes?

dsig

David Tod Sigafoos ~ SigSolutions

dsig@teleport.com


At 01 SEP 1998 10:24AM DSig (SigSOlutions) wrote:

I believe we did something like this in an earlier incarnation but found that all controls with tab order gotfocus .. so that a label might be the last ctrl.

But this was a long time ago so ..

dsig

David Tod Sigafoos ~ SigSolutions

dsig@teleport.com


At 02 SEP 1998 06:36AM Richard Bright NZ wrote:

Greg,

I'm puzzled why you need to know details about the control for the SSP.

Why can you not use the square brackets UDC eg

MY_VALIDATION_CONVERSION,branch

see examples as in Telephone conversion etc.

The UDC would go in place of other conversions, such as date etc

Richard Bright

BrightIdeas New Zealand

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/4eb2d5ff673c815085256671005b5bcb.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1