Working with 17R2 (Mac client, Windows server) with a form whose values are
populated using ORDA and the Form object. The Company Name variable has an
object name of "CUSTOMERS_CompanyName_Field" and Form.record_O.CompanyName
is in the "Variable or Expression" entries in the Property List.
When this code runs in the object method for Company Name, $ptr_P is a nil
pointer:

$ptr_P:=OBJECT Get pointer(Object current)
$ptr_P:=OBJECT Get pointer(Object named;"CUSTOMERS_CompanyName_Field")

When I remove the text from "Variable or Expression", the above code
returns a pointer to the variable.

My goal is to have different forms whose objects shared the same object
name which would allow me to use the following code:

OBJ_GPBN ("CUSTOMERS_CustomerCode_Field")->:=CUSTOMER_CustCode_Calculate
(OBJ_GPBN ("CUSTOMERS_CompanyName_Field")->)

If this behavior is not a bug, what's the workaround to be able to use one
set of code that works with values that are populated using a Form object
as well as with detail view forms that use fields from a record?

--
Douglas von Roeder
949-336-2902
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to