In addition to what Neil and Mike posted, VOID is used to build Queued Components. Because of the asynchronous and disconnected nature of these animals, functions of queued components can not return values. From the Help:
Use AS VOID for the return value of a method if the method does not return anything (oneway procedure). This is required for certain technologies such as Microsoft COM+ Services Queued Components.
See the Help on Define Class for a translation chart for type declarations to TypeLib information.
>>>I have been going through the new VFP documentation supplied in the July 2001 MSDN Library.
>>>
>>>While I see the new "As" clause for LOCAL, LPARAMETERS, PARAMETERS, etc. I cannot find anything that explains/describes how/what can be coded there.
>>>
>>>Under the topic "Strong Typing in Class, Objects and Variable code" there are examples such as:
>>>PUBLIC ARRAY MyArray[2] AS _form OF ffc\_base
>>>
>>>LPARAMETERS MyParam1 AS string OF _base.vcx
>>>
>>>PARAMETERS MyParam1 AS custom OF Mybase.vcx
>>>
>>>Any help appreciated.
>>>
>>>JimN
>>
>>Jim,
>>Any valid variable data type can go there (Datetime, Character, Logical, Void). Statements like this are more for the TypeLib declarations (IMO). In addition, a PrgID for a COM class or a VFP class and class lib can be used. Statements like this are more for Intellisense.
>>
>>HTH.
>
>Yes, it helps Larry.
>
>But, for instance, I've seen "VOID" coded in examples through the years and always just sloughed it off as 'just C code that I needn't concern myself with'. Now, to exploit Intellisense, I have to concern myself with that "stuff".
>
>I have no idea what "VOID" actually means and why I would use it. Something that describes whats valid and what it describes (means) is what I hope to find in the docs.
>
>Thanks
>JimN
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao