>I have an application that will receive an unlimited number of parameters. In VB.NET, I can have:
>
>
> Sub Main(ByVal CmdArgs() As String)
>
>
>to define the entry parameters and have as much as I want.
>
>But, in VFP, I don't know if the same can be obtained. Is the only way to define, for exemple, up to 20 parameters, and verify each of them until I find one that is not passed? This approach would be like creating a long buffer of parameters in order to respond to an unlimited number of parameters being passed. Is that the only way or there is a VB.NET like mechanism?
I don't know of any other way in VFP. All command line parameters to VFP will be passed as character, so you could use a naming convention and "build" your parameter name in a loop to check for the first one that contains a logical .F. for it's value. The one before that (eg: the last one that's of type character) is the last actual passed parameter.