At 06:24 2017-06-20, "Tracy Pearson" <tracy(a)powerchurch.com> wrote:
>Gene Wirchenko wrote on 2017-06-19:
> > Hello:
> > I have found a bug. Whether it is in VFP 9 SP 2 or in the VFP
> > 9 documentation (Microsoft Visual FoxPro 9 SP2 Help file, VFPX
> > Edition v1.07) is a toss-up.
> > Supposedly, the fourth and fifth parameters to inputbox() can
> > be omitted. What I found is that if the sixth parameter is
> > specified, the fourth and fifth parameters can not be omitted. When
> > I did, I got a compilation error.
> > This is not the sort of function I would normally use, but I am
> > writing a debugging routine.
>Looking at this structure from the help file:
>INPUTBOX(cInputPrompt [, cDialogCaption [, cDefaultValue [, nTimeout
>[,cTimeoutValue] [,cCancelValue]]]])
>
>It suggest if you want the 5th or 6th parameter, the 4th one cannot be
>omitted.
It looks like a mess. Supposedly, one could omit and of the
fourth through sixth parameters and the parameters leading comma.
>The 5th and 6th parameters are wrapped in the 4ths parameters brackets.
>
>It looks like it should work like this (untested)
> INPUTBOX(cInputPrompt, cDialogCaption, cDefaultValue, 0, , cCancelValue)
It does not work. If I specify cCancelValue, I have to include
values for both nTimeout and cTimeoutValue. I checked this before my
initial post.
Sincerely,
Gene Wirchenko