General information
Category:
Coding, syntax & commands
Vlad,
I don't see why you respond to Vinod's simple question with a (snarky, in my opinion) "yes, of course".
I elected to pass on your initial query because you seemed to have omitted some potentially important information, the most basic of which was Vinod's simple question!
Your original question certainly *IMPLIED* that there was no other reference to the field(s) in question, cause if there was it would have made sense for you to mention it. You *IMPLIED* that this code stood alone and appeared useless.
Now we learn it does *NOT* stand alone. Perhaps, with the *FULL* background, some sensible answer can be derived.
Cheers,
Jim N
That very>>>Recently, I had to optimize/debug/verify/etc an old project written in FP 2.6.
>>>
>>>At the begining of the main program I found the following code that doesn't make any sense to me. (I also asked other FoxPro programmers from our team, but no answer was found.):
>>>
>>>parameter Cmd_Param
>>>
>>>if type("Cmd_Param") = "C"
>>> TempVar = Cmd_Param
>>> release Cmd_Param
>>> private Cmd_Param
>>> Cmd_Param = TempVar
>>>endif
>>>
>>>I can't find any reason to have this piece of code in the program since, IMO, it does nothing. Am I missing something? Is there something subtle/secret/etc and I don't see it?
>>>
>>>Vlad
>>
>>Afterwards in the program, Is it checking the value of cmd_param ??
>
>Yes, of course. Why?
>
>Vlad
Previous
Next
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