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.
>  
>  Sincerely,
>  
>  Gene Wirchenko

Gene,

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.
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)

HTH,
Tracy



Tracy Pearson
PowerChurch Software


_______________________________________________
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/[email protected]
** 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