>how to make variable nothing after performing the function needed.
>
>In VB
>
>set lcdefault = nothing
>
>in VFP how to make a viariable nothing.
>
>Thank you.
In VFP, you assign a variable as follows:
MyVariable = "TextValue"
You can explicitly release a variable with the RELEASE command:
release MyVariable
I have never done this: private and local variables are automatically released after you end the program where they are defined.
You can also assign a null value, to indicate that no valid data is available, for instance:
...
if seek(SomeValue)
ReturnValue = Field1
else
ReturnValue = NULL
endif
...
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)