<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>31 Aug 2015 15:05:00 Z</lastBuildDate><pubDate>31 Aug 2015 13:04:00 Z</pubDate><description>To create an optional procedure parameter one must specify a default like this:&#13;
MyProc(ManadatoryParam is string, OptionalParam is string = "x").&#13;
&#13;
What is the correct syntax for creating an optional parameter which is a control?&#13;
OptionalParam is control = ???&#13;
&#13;
Many thanks,&#13;
&#13;
Michael</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp</link><title>[WX19] How to create an optional Procedure parameter of type Control?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53785/read.awp</comments><pubDate>31 Aug 2015 15:05:00 Z</pubDate><description>Thank you gentlemen.&#13;
&#13;
Michael</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53785/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53785/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp">[WX19] How to create an optional Procedure parameter of type Control?</source><title>Re: [WX19] How to create an optional Procedure parameter of type Control?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53784/read.awp</comments><pubDate>31 Aug 2015 14:42:00 Z</pubDate><description>Hi Michael,&#13;
&#13;
Out of my head, something like this should do the trick:&#13;
//Call procedure and pass control MyProcedure(EditContr…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53784/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53784/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp">[WX19] How to create an optional Procedure parameter of type Control?</source><title>Re: [WX19] How to create an optional Procedure parameter of type Control?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53782/read.awp</comments><pubDate>31 Aug 2015 14:14:00 Z</pubDate><description>Michael,&#13;
I think you can declare it like:&#13;
MyProc(ManadatoryParam is string, OptionalParam is Control = Null)&#13;
To call it use M…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53782/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53782/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp">[WX19] How to create an optional Procedure parameter of type Control?</source><title>Re: [WX19] How to create an optional Procedure parameter of type Control?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53781/read.awp</comments><pubDate>31 Aug 2015 13:36:00 Z</pubDate><description>Thanks Fabrice.&#13;
&#13;
If I declare the procedure as follows:&#13;
MyProc(ManadatoryParam is string, OptionalParam is control = "table")…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53781/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53781/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp">[WX19] How to create an optional Procedure parameter of type Control?</source><title>Re: [WX19] How to create an optional Procedure parameter of type Control?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53780/read.awp</comments><pubDate>31 Aug 2015 13:26:00 Z</pubDate><description>Hi Michael&#13;
&#13;
use a string, pass the control..fullname, then, in your procedure, either use the name or an indirection on the na…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53780/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control-53780/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53779-wx19-how-create-optional-procedure-parameter-type-control/read.awp">[WX19] How to create an optional Procedure parameter of type Control?</source><title>Re: [WX19] How to create an optional Procedure parameter of type Control?</title></item></channel></rss>
