Skip to main content

Intf_ASN_String

Intf_ASN_String = 'ASN'

Example

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

Usage

Intf_ASN_String provides the exact ASN Interface.Code token paired with numeric interface identifier 2.

Value

PropertyValue
Script typeString
Exact valueASN
Database rowInterface.Num = 2
Numeric partnerIntf_ASN = 2
Module rowYes (IsModule = 1)
Fresh-build defaultActive = 0; IsConfigured = 0

Additional Technical Info

Intf_ASN_String is the script-visible String code for the ASN module interface. Its exact value is ASN, paired with Intf_ASN and database key 2.

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 ASN in Code.

This String name is not inserted into gVeloxConstMap. A configuration tag such as <!Intf_ASN_String!> is therefore invalid; only the numeric name Intf_ASN 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: ASN 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 ASN 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 ASN so the intent is searchable and remains visibly paired with interface number 2.

  • Intf_ASN — numeric key and supported <!Intf_ASN!> 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