KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: A few reminders when using OP Define Bind By Numbers
PRODUCT: 4D Open | VERSION: 6.8 | PLATFORM: Mac & Win
Published On: May 16, 2002
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Platform: 4D Open 6.8

When using the 4D Open command "OP Define bind by numbers", there are a few things to remember which can help limit possible confusion when using the command.

1) If you are creating a bind to a field, remember to pass an empty string "" for the last parameter. The last parameter is the name of the variable you want to create a bind to, but in our case we are binding to a field so the variable name is not needed.

Example:

$ErrCode:=OP Create bind (vl_BindID)
$ErrCode:=$ErrCode+OP Define bind by numbers (vl_BindID;vServerTableNum; vServerFieldNum; vLocalTableNum;vLocalFieldNum;"")


2) If you are creating a bind to a variable, remember to pass a zero for the local table and field numbers. Since we are binding to a variable, we do not need to use the table and field parameters. Also, remember that we are passing in the variable as a string and not a variable.

Example:

$ErrCode:=OP Create bind (vl_BindID)
$ErrCode:=$ErrCode+OP Define bind by numbers (vl_BindID;vServerTableNum; vServerFieldNum; 0;0;"vVariableName ")