Recently I encountered this and thought that I may be helpful to pass it
along to this list.

A4D, or any other plugin, component can effectively work with variable in
the host database by calling a host database method that returns a pointer
to that variable in the host database.

A4D script that works!
C_pointer($Ptr)
$Ptr:=MyHostDBGetPointers("vBlob1")

$Ptr->:=[Table]Field
MyDecrypt($Ptr;<>DataVar) //Here vBlob1 is defined in the Host database. My
Decript calls a method in a different component which can access the
variable in the Host database.
-------

A4D script that fails!
C_Blob(vBlob1)
SET BLOB SIZE(vBlob1;0)
vBlob1:=[Table]xField
MyDecrypt(->vBlob1;<>DataVar) //Here vBlob1 is defined in both A4D and the
Host database. My Decript calls a method in a different component which
cannot access the variable in A4D. MyDecrypt will fail because the pointer
is undefined in the subsequently called method in another component.
-------

I hope that helps someone!


David Ringsmuth
(credit to Tony Ringsmuth)

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to