X++ runtime functions for common tasks
- Business operations - Enter financial data and calculate financial formulas.
- Container operations - Run functions to manipulate the container data type.
- Conversions - Translate the data from one type to another data type.
- Date operations - Manipulate the date data type.
- Mathematical operations - Used to perform additional calculations.
- Reflection operations - Access an object's metadata and return other metadata for the object.
- Session operations - Change or report current user connection to Finance and Operations apps.
- String operations - Like the date operations, string operations can manipulate the string data type.
Business
For more information, see X++ Business Run-Time Functions.
Container
For more information, see X++ Container Run-Time Functions.
- conDel
- conFind
- conIns
- conLen
- conNull
- conPeek
- conPoke
Conversion
For more information, see X++ Conversion Run-Time Functions.
Date
For more information, see X++ Date Run-Time Functions.
Math
For more information, see X++ Math Run-Time Functions.
Reflection
For more information, see X++ Reflection Run-Time Functions.
Session
For more information, see X++ Session Run-Time Functions.
String
For more information, see X++ String Run-Time Functions.
beep
Emits a short sound from the speakers on the computer.
void beep()
beep example
static void beepExample(Args _args)
{
beep();
}
newGuid
Creates a globally unique identifier (GUID).
guid newGuid()
Return value
A GUID.
newGuid example
The following example creates a GUID.
static void newGuidExample(Args _arg)
{
guid myGuid;
myGuid = newguid();
print strfmt("The GUID is: %1", myGuid);
}
sleep
Pauses the execution of the current thread for the specified number of milliseconds.
int sleep(int _duration)
Parameters
sleep return value
The number of milliseconds that the thread actually paused.
Example
static void sleepExample(Args _arg)
{
int seconds = 10;
int i;
i = sleep(seconds*1000);
print "job slept for " + int2str(i/1000) + " seconds";
}
No comments:
Post a Comment