LextEdit provides a simple but useful tool to quickly take MSQL code and convert it in to a section of usable C Code. In the file menu under "Edit" there is the option "Format Selection for C (MSQL Only)". This will convert a selected section of MSQL Code in to a string, replacing the variables with '%s', and adding the variable names comma separated at the end so the entire section can be used in C for a sprintf statement. This can save considerable time when trying to write large C based commands and significatly reduce the number of mistakes when creating the C code.
Example:
MSQL Code:
Converted: