General information
Category:
Coding, syntax & commands
>>>Hello.....
>>>
>>>Just out of curiosity what is the difference between these two?
>>>
>>>FUNCTION ReturnSomething(MyParameter AS String)
>>>.
>>>.
>>>.
>>>.
>>>ENDPROC
>>>
>>>
>>>FUNCTION ReturnSomething()
>>>LPARAMETER MyParameter
>>>.
>>>.
>>>.
>>>.
>>>ENDPROC
>>>
>>>
>>>Thanks in advance
>>
>>
>>The second has one line of code more :-)
>>No difference.
>
>So, Why do some VFP coder use "....MyParameter AS String" or "....MyParameter AS Int "or"... MyParameter AS object"?
>This doesn't make it a HARD TYPED member, does it?
As others said, it's for IntelliSense, as well as for readers. But also when creating COM objects, the type gets stored in the Type Library.
Tamar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only