I'd like to use thisform.SetAll to set all the nulldisplay properties to a
value that makes control.values look blank, but I can't find the right combo
of equal signs, quotation marks and square brackets to do it. =space(1) in
the property sheet and similar just move the insertion point to the end of
the invisible space when the control gets focus. I'd rather not use set
nulldisplay since a global setting has effects elsewhere.
-Lew

Re: setall() & .Nulldisplay by AA

AA
Mon Oct 30 11:52:43 CST 2006

Have you tried
Thisform.SetAll('NullDisplay','')

-Anders

"Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
news:euPwN2D$GHA.2340@TK2MSFTNGP05.phx.gbl...
> I'd like to use thisform.SetAll to set all the nulldisplay properties to a
> value that makes control.values look blank, but I can't find the right
> combo of equal signs, quotation marks and square brackets to do it.
> =space(1) in the property sheet and similar just move the insertion point
> to the end of the invisible space when the control gets focus. I'd rather
> not use set nulldisplay since a global setting has effects elsewhere.
> -Lew
>



Re: setall() & .Nulldisplay by Lew

Lew
Mon Oct 30 12:25:08 CST 2006

Yes. This acts like a passthrough: the text value from current set
nulldisplay to <text> is displayed.

"AA" <A@A> wrote in message news:%23o8mw1E$GHA.360@TK2MSFTNGP04.phx.gbl...
> Have you tried
> Thisform.SetAll('NullDisplay','')
>
> -Anders
>
> "Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
> news:euPwN2D$GHA.2340@TK2MSFTNGP05.phx.gbl...
>> I'd like to use thisform.SetAll to set all the nulldisplay properties to
>> a value that makes control.values look blank, but I can't find the right
>> combo of equal signs, quotation marks and square brackets to do it.
>> =space(1) in the property sheet and similar just move the insertion point
>> to the end of the invisible space when the control gets focus. I'd rather
>> not use set nulldisplay since a global setting has effects elsewhere.
>> -Lew
>>
>
>



Re: setall() & .Nulldisplay by AA

AA
Mon Oct 30 12:43:32 CST 2006

If there's a global SET NULLDIPLAY TO 'text', you'd have to turn that off
first. Setting all the Nulldisplay properties to space(1) will work fine in
List and comboxes, and Grid for display. For grids you also need
SetAll('sparse', .f.)
To get the insertion point to postion 0 in texboxes you could add a
SelStart=0 in the GotFocus event to your textbox class.
-Anders

"Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
news:ewVqlAF$GHA.3480@TK2MSFTNGP04.phx.gbl...
> Yes. This acts like a passthrough: the text value from current set
> nulldisplay to <text> is displayed.
>
> "AA" <A@A> wrote in message news:%23o8mw1E$GHA.360@TK2MSFTNGP04.phx.gbl...
>> Have you tried
>> Thisform.SetAll('NullDisplay','')
>>
>> -Anders
>>
>> "Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
>> news:euPwN2D$GHA.2340@TK2MSFTNGP05.phx.gbl...
>>> I'd like to use thisform.SetAll to set all the nulldisplay properties to
>>> a value that makes control.values look blank, but I can't find the right
>>> combo of equal signs, quotation marks and square brackets to do it.
>>> =space(1) in the property sheet and similar just move the insertion
>>> point to the end of the invisible space when the control gets focus. I'd
>>> rather not use set nulldisplay since a global setting has effects
>>> elsewhere.
>>> -Lew
>>>
>>
>>
>
>



Re: setall() & .Nulldisplay BUGISH? by Lew

Lew
Mon Oct 30 14:48:19 CST 2006

I'm not anxious to turn set nulldisplay off since it's a global setting used
throughout our enterprise. AFAK, everywhere else in VFP that there are class
level settings for global sets, the class level takes priority. It seems
that, in order for this idea to work in similar fashion, there should be a
clear difference between the default setting (which is to use the global
setting) and setting the display to an empty string. A safe, but code
intensive workaround is a iif(isnull().... in the refresh for each affected
control.
-Lew
"AA" <A@A> wrote in message news:uHMwSNF$GHA.1196@TK2MSFTNGP02.phx.gbl...
> If there's a global SET NULLDIPLAY TO 'text', you'd have to turn that off
> first. Setting all the Nulldisplay properties to space(1) will work fine
> in List and comboxes, and Grid for display. For grids you also need
> SetAll('sparse', .f.)
> To get the insertion point to postion 0 in texboxes you could add a
> SelStart=0 in the GotFocus event to your textbox class.
> -Anders
>
> "Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
> news:ewVqlAF$GHA.3480@TK2MSFTNGP04.phx.gbl...
>> Yes. This acts like a passthrough: the text value from current set
>> nulldisplay to <text> is displayed.
>>
>> "AA" <A@A> wrote in message
>> news:%23o8mw1E$GHA.360@TK2MSFTNGP04.phx.gbl...
>>> Have you tried
>>> Thisform.SetAll('NullDisplay','')
>>>
>>> -Anders
>>>
>>> "Lew Schwartz" <lschwartz@sionline.com> skrev i meddelandet
>>> news:euPwN2D$GHA.2340@TK2MSFTNGP05.phx.gbl...
>>>> I'd like to use thisform.SetAll to set all the nulldisplay properties
>>>> to a value that makes control.values look blank, but I can't find the
>>>> right combo of equal signs, quotation marks and square brackets to do
>>>> it. =space(1) in the property sheet and similar just move the insertion
>>>> point to the end of the invisible space when the control gets focus.
>>>> I'd rather not use set nulldisplay since a global setting has effects
>>>> elsewhere.
>>>> -Lew
>>>>
>>>
>>>
>>
>>
>
>