ERROR('No valid combination found.\Game:%1 Jurisdiction:%2\C1:%3 C2:%4 C3:%5 C4:%6 C5:%7 C6:%8 C7:%9 C8:%10' + 'C9:%11 C10:%12 C11:%13 C12:%14 C13:%15 C14:%16 C15:%17 C16:%18 C17:%19 C18:%20', CompGame,CompJuris,CompArray[1],CompArray[2],CompArray[3], CompArray[4],CompArray[5],CompArray[6],CompArray[7],CompArray[8], CompArray[9],CompArray[10], CompArray[11],CompArray[12],CompArray[13],CompArray[14], CompArray[15],CompArray[16],CompArray[17],CompArray[18]);
Comments
The message is clear as such: you cannot have more than 11 parameters in this function call. Apparently the ERROR function does allow for only 11 parameters, being the error string at the start followed by 10 other parameters. In your code you are using 20 parameters.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Text001 is TextConstant Created with
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
with the following text constants:
Text001: No valid combination found.\Game:%1 Jurisdiction:%2\%3 %4
Text002: C1:%1 C2:%2 C3:%3 C4:%4 C5:%5 C6:%6 C7:%7 C8:%8 C9:%9
Text003: C10:%1 C11:%2 C12:%3 C13:%4 C14:%5 C15:%6 C16:%7 C17:%8 C18:%9
and String, String2 and String3 being text variables
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Thanks for your reply. Sorry for delayed continuation in this thread.
Both the solution are compiling without any error.
Mohana, What should I do to extend the parameters to 20? Is there any alternative way to do so? Is there any alternative for ERROR function.
lvanvugt, Your solution is compiling without any error, but it is not working out. Is there anyother solution?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
... few records are getting updated in a table if it correctly executed.
The user demanded for addition of 10 more fields say CompArray[9] to CompArray[18]. So I need to include these 10 fields along with the above fields. I am struck up with this. If you want, I can send you the object also.
Arvindh, I am lost. What ELSE part? I do not see one above ... Your question was about the ERROR message. Is that solved and are you asking about something else?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Just ignore what I have said about ELSE part.
I applied the solution that you gave in your previous reply. I am not getting any error or warning message.
But previously, with the below code..
.. a field in a table was updating with few values.
After I approached your way...
.. I am not able to update the field. If I comment those lines, it is working fine. If you need the whole code, please let me know.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Please mark this issue as Solved.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community