Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to 'omit' agruments in function calls - where in Hel
Message
From
13/12/2004 17:33:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968845
Message ID:
00968920
Views:
8
Hugo,

No apology necessary - it was a serious question with rhetorical overtones.

I had gotten 'through' the save by coding 0 in the first element and the #of elements, but felt that that wasn't correct. I'm happy that someone knows that the proper thing to code is -1, and will change the code accordingly.

The "Help" (in quotes here for obvious reasons) states "If you omit..." several times. It does mention coding -1, but solely in the context of VFP6.

Thanks Hugo.

>>I hope this gets through in the right forum/category - looks like Michel & co. are changing things on-the-fly AGAIN!!!
>>
>>Where do I find, in VFP Help, the proper "rules" for omitting arguments (parameters) in function calls.
>>Comes up for me with ASCAN(), which turns out not to seem to mean "omit" as defined in my dictionary but rahter "omit" in some specific VFP definition.
>>
>>Thanks
>
>Jim, I can not answer your question, but I can guess that the problem with ASCAN is that you want to omit one parameter, and VFP passes it as .F., giving you an error. I think you can pass -1 to the parameter you want to omit, and I think that would solve your problem, if you had one and it was not just a rethorical example, in which case I appologize.
Previous
Reply
Map
View

Click here to load this message in the networking platform