Internal Macro Functions
SYSTIME Record
The SYSTIME record describes the system time. It is returned by the GetSysTime function.
Field
time date
Description
the time of day in string format.
the day of week, day, month, and year as a string.
Month
DayOfWeek
Day
current month number. January is 1.
day of week number. Sunday is 0, Monday is 1, etc.
day of month.
Internal Macro Functions
Source Insight provides many built-in internal macro functions. There are functions for manipulating strings, file buffers, windows, projects, and symbol information.
The syntax for calling an internal macro function is the same as for calling a user-defined macro function. For example: hbuf = GetCurrentBuf() // call GetCurrentBuf function
String Functions
String functions are provided to allow string manipulation. You don't have to worry about memory management of strings, or declaring buffers to hold strings.
AsciiFromChar (ch)
Returns the ASCII value of the given character ch. If ch is a string with more than one character, only the first character is tested.
cat (a, b)
Concatenates strings a and b together and returns the result.
Alternatively, you can use the infix string concatenation operator (
#
) within an expression. For example: full_name = first_name # " " # last_name
CharFromAscii (ascii_code)
Returns a string containing a single character that corresponds to the ASCII code in ascii_code.
Source Insight 4 User Guide 383