I have a question regarding optional arguments. I am trying to write a function where if I have two optional arguments and I decide to specify one of hem then it would be compulsory to specify the other else it will give a validation error.
I have a function VOID abc(STRING a optional, STRING b optional)
If I decide to pass 'a' then I would have to pass 'b' else I get a validation error. Something like the 'SetMultiText' method of silktext.
In silk they use the square brackets but we do not use that method while writing user defined functions.
I'm not sure if Silk supports the Compile time validation you need, but you should be able to do a runtime validation, code it in..
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">VOID abc(STRING a optional, STRING b optional)
if (a !=Null)
if (b == NULL)
raise (1, ERROR_NEED_PARAM B)
end if</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">check out raise, and the Error codes Silk has defined so that you can intigrate the function with Silk.