CharBufferString.Replace (METH) ¶ METHOD Replace Replaces <iLengthToReplace> characters of our string by cbsReplaceWith, starting at the <iPosition>-th character position iPosition = 1 is the first character. InOut: Scope Name Type Input cbsReplaceWith REFERENCE TO CharBufferString iLengthToReplace INT iPosition INT
CharBufferString.StringType (PROP) ¶ PROPERTY StringType : __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value indicating type of the string
ILocalizedDateTimeNames (ITF) ¶ INTERFACE ILocalizedDateTimeNames Methods: GetDayLong GetDayShort GetMonthLong GetMonthShort Structure: GetDayLong (Method) GetDayShort (Method) GetMonthLong (Method) GetMonthShort (Method)
ILocalizedDateTimeNames.GetDayLong (METH) ¶ METHOD GetDayLong : CharBufferPtr returns the localized text of the day as whole name. If no localization exists, a defaulttext (textid) should be returned. The stored value, the returnpointer is set to, will be overridden by any next call of one of the Get-methods of the implementing functionblock in VisuElemBase. Therefore, the result should be used at once. The pointer should not be stored. InOut: Scope Name Type Comment Return GetDayLong CharBufferPtr Input uiDayOfWeek UINT Day of Week: 1: Monday, 2: Tuesday,.. 7: Sunday
ILocalizedDateTimeNames.GetDayShort (METH) ¶ METHOD GetDayShort : CharBufferPtr returns the localized text of the day as short name. If no localization exists, a defaulttext (textid) should be returned. The stored value, the returnpointer is set to, will be overridden by any next call of one of the Get-methods of the implementing functionblock in VisuElemBase. Therefore, the result should be used at once. The pointer should not be stored. InOut: Scope Name Type Comment Return GetDayShort CharBufferPtr Input uiDayOfWeek UINT Day of Week: 1: Monday, 2: Tuesday,.. 7: Sunday
ILocalizedDateTimeNames.GetMonthLong (METH) ¶ METHOD GetMonthLong : CharBufferPtr returns the localized text of the month as whole name. If no localization exists, a defaulttext (textid) should be returned. The stored value, the returnpointer is set to, will be overridden by any next call of one of the Get-methods of the implementing functionblock in VisuElemBase. Therefore, the result should be used at once. The pointer should not be stored. InOut: Scope Name Type Comment Return GetMonthLong CharBufferPtr Input uiMonth UINT the month: 1: January,.. 12: December
ILocalizedDateTimeNames.GetMonthShort (METH) ¶ METHOD GetMonthShort : CharBufferPtr returns the localized text of the month as short name. If no localization exists, a defaulttext (textid) should be returned. The stored value, the returnpointer is set to, will be overridden by any next call of one of the Get-methods of the implementing functionblock in VisuElemBase. Therefore, the result should be used at once. The pointer should not be stored. InOut: Scope Name Type Comment Return GetMonthShort CharBufferPtr Input uiMonth UINT the month: 1: January,.. 12: December
Printf (FUN) ¶ FUNCTION Printf This function performs a “formatted printing” of the value <pValue> points to. InOut: Scope Name Type Comment Input cbsResult REFERENCE TO CharBufferString The buffer, where the result will be returned cbsFormat REFERENCE TO CharBufferString The format string used for formatting the value pValue POINTER TO BYTE A pointer to the begin of the piece of memory, where the value to format is stored. typeClass __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value describing the type of the value to format
StuSprintf (FUN) ¶ FUNCTION StuSprintf : INT Does a sprintf for the given format string and the given variable. Will not return NULL! InOut: Scope Name Type Comment Return StuSprintf INT Input pstFormat POINTER TO STRING the formatstring pVarAdr POINTER TO DWORD the address of the variable that shall be printed udiVarType __SYSTEM.TYPE_CLASS the type of the variable as a __SYSTEM.TYPE_CLASS value pBuffer POINTER TO BYTE the buffer where the text is to be printed dwBufferSize UDINT the size of the buffer in bytes
StuSprintfW (FUN) ¶ FUNCTION StuSprintfW : INT Does a sprintf for the given format string and the given variable. Will not return NULL! InOut: Scope Name Type Comment Return StuSprintfW INT Input wstFormat POINTER TO WSTRING the formatstring pVarAdr POINTER TO DWORD the address of the variable that shall be printed udiVarType __SYSTEM.TYPE_CLASS the type of the variable as a __SYSTEM.TYPE_CLASS value pBuffer POINTER TO BYTE the buffer where the text is to be printed dwBufferSize UDINT the size of the buffer in bytes, not in wstring characters!