> Le 8 janv. 2017 à 18:58, Kirk Brooks <[email protected]> a écrit :
> 
> [...] I went in a slightly different direction:
> 
> OBJECT_SET_TEXT("objectName";"text value to set")
> 
> $text:=Object_get_text("objectName")​
> 
> OBJECT_SET_toPointer("objectName";$pointer) // handles any data type

Looks quite similar to Cannon's logic in his OB module… 
I couldn't help to ask him recently why this:
  text:=OB_getText (obj;property { ;->optionalText)
  long=OB_getLong (obj;property { ;->optionalLong)
  pict=OBJ_Get_Picture (obj;property { ;->optionalPict)
  etc.
instead of that:
  OB_get (obj;property;->mandatoryVarWithType)
In the second approach, there is one method, but it has to read the variable 
type to convert correctly. 
I tried to compare on a simple example (read a set of virtual names, ~180 
tables and thousands of fields): using OB_get is slower. Pointers, maybe… 

But with a form variable, the pointer cannot be avoided. So could you say more 
about your choices? 

-- 
Arnaud de Montard 

PS
for those who are like me stuck to v14, there is a v14 version of Cannon's OB 
module here:
<http://forums.4d.fr/Post/FR/18850194/1/18850195#18850195>
PS2
for those who are like me stuck to xml and hardly try to understand what an 
object could be, I put a "xml to object" converter here
<http://forums.4d.fr/Post/FR/18847378/1/18863603#18847451>
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to