Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
ACCESS Statement (DataBasic) (m618703+access_s.htm)
Allows the states of various data elements to be changed. Can be used only within Embedded Basic subroutines.
ACCESS(data-element) = value
data-element is a number specifying the data element to be referenced.
If the ACCESS statement is called from an illegal environment, it raises the following run time error:
[B160] Program progname. Line number.
ACCESS(n) is not supported in this environment.
Only the following data elements can be changed:
v Legal in this environment.
X Illegal in this environment.
The ACCESS(34) statement allows you to delete the next conversion code to prevent it being processed. This is necessary when an Embedded Basic subroutine has been written to replace a user exit migrated from another MultiValue system that passes parameters separated by value marks. For example, in:
U5555vm45
if user exit 5555 is replaced with an Embedded Basic subroutine, this would call the ACCESS(34) function to fetch the parameter "45". However, before returning, the subroutine must use the ACCESS(34) statement to delete this parameter to prevent it being processed as a normal conversion code.