MX_STRING
Posted: Sat Mar 23, 2013 1:44 pm
When using datatype MX_STRING in a custom function, Flowcode adds an additional parameter in the function declaration immediately after this variable. Why is this?
As an example:
In a custom component, I have a function with the following declaration:
In the Macro function declarations in the C code the following appears:
What is this second variable that appears in the function declaration?
Also when using the component in flowcode it works fine and the fields window does not show this variable, however if you look at the customize component code window and the component macros prototype this additional field appears.
Interestingly if you use unsigned char* which is the definition of MX_STRING, the second parameter is not added in the generated code.
any ideas anyone?
many thanks
Sefi
As an example:
In a custom component, I have a function with the following declaration:
Code: Select all
void TFT_Do_something( MX_STRING Text)
{
/*Macro_TFT_Do_Something_Start*/
/*Macro_TFT_Do_Something_End*/
}
Code: Select all
void FCD_Custom20_TFT_Do_Something(MX_STRING Text, MX_UINT8 MSZ_Text);
Also when using the component in flowcode it works fine and the fields window does not show this variable, however if you look at the customize component code window and the component macros prototype this additional field appears.
Interestingly if you use unsigned char* which is the definition of MX_STRING, the second parameter is not added in the generated code.

any ideas anyone?
many thanks
Sefi