Skip to main content

Intf_StockQuantity_String

Intf_StockQuantity_String = 'StockQuantity'

Example

procedure ScriptEvent(var Value: variant);
begin
if DATA_Interface['Code'].AsString = Intf_StockQuantity_String then
Value := Intf_StockQuantity;
end;

Usage

Intf_StockQuantity_String provides the exact StockQuantity Interface.Code token paired with numeric interface identifier 9.

Value

PropertyValue
Script typeString
Exact valueStockQuantity
Database rowInterface.Num = 9
Numeric partnerIntf_StockQuantity = 9
Module rowYes (IsModule = 1)
Fresh-build defaultActive = 0; IsConfigured = 0

Additional Technical Info

Intf_StockQuantity_String is the script-visible String code for the StockQuantity module interface. Its exact value is StockQuantity, paired with Intf_StockQuantity and database key 9.

Use this constant for interface-code fields, trusted code lookups and comparisons. Use the numeric partner where Velox expects Interface.Num or InterfaceNum.

Implementation

Velox declares the native String constant in vxVeloxEDI.pas and registers the same text with PascalScript through uPSI_vxVeloxEDI.pas. The fresh-build Interface row uses StockQuantity in Code.

This String name is not inserted into gVeloxConstMap. A configuration tag such as <!Intf_StockQuantity_String!> is therefore invalid; only the numeric name Intf_StockQuantity has a tag-map entry.

Behaviour

  • The value is an immutable compile-time String; reading it performs no lookup or validation.
  • It can be compared with DATA_Interface['Code'].AsString or passed to a helper that explicitly accepts an interface code.
  • The constant preserves the database token's exact spelling and capitalization.
  • The numeric and String constants are separate registrations maintained alongside the database seed data.

Edge cases and quirks

  • Do not add spaces to compound codes: StockQuantity is the stored code even where a user-facing description may contain spaces.
  • Script String comparison and SQL comparison are different operations. A database lookup follows the target database's collation; do not rely on that collation to correct altered spelling or whitespace.
  • The Scriptlet GetInterfaceForCode helper performs a database lookup and interpolates its argument into SQL rather than binding a parameter. Pass only a trusted/validated constant such as this one, not untrusted external text.
  • The constant does not prove that the StockQuantity row is licensed, enabled, configured or active. A fresh database uses Active = 0 and IsConfigured = 0, but deployed state can differ.
  • No script-visible native GetInterfaceNum/GetInterfaceCode converter is currently registered; those implementations and registrations are commented out.

Side effects

Reading or comparing the constant has no side effects. A lookup or database operation that receives it has the effects and permissions of that operation.

Errors

The constant itself cannot fail. Code-based lookup can report the interface as not found when the deployed row is absent or its code has changed. Unsafe concatenation of untrusted text into the Scriptlet lookup can also produce malformed SQL; use the fixed constant or parameterized application logic.

Performance and concurrency

Constant access is constant-time and thread-safe. Database lookup cost, collation and concurrent row changes apply only when a separate operation queries Interface.

Remarks

Prefer this constant over the literal StockQuantity so the intent is searchable and remains visibly paired with interface number 9.

  • Intf_StockQuantity — numeric key and supported <!Intf_StockQuantity!> tag.
  • DATA_Interface — reusable dataset commonly used to load interface row data.
  • ProcessTags — numeric Velox-tag processing; this String name is deliberately not a tag.

External references

No Delphi or Free Pascal equivalent applies. This code token and its database meaning are Velox-owned.

Created 2026-07-15