At 06:24 2017-06-20, "Tracy Pearson" <[email protected]> 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


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/9e06bccdbf96c41ff1dd7cf40dca1110@mtlp000084
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to