Subject Re: htmlliink cc
From Ken Mayer <>
Date Sat, 1 Feb 2020 13:26:00 -0800
Newsgroups dbase.getting-started

On 2/1/2020 12:51 PM, Charlie wrote:
> OK thanks... That is very helpful.  But I tried this in onnavigate and although I received no errors.  The link is still visible.  I have something similar in the onopen as well.  I must be doing something wrong.
> if this.fields["choo"].value = 0
>                    this.parent.parent.htmllinktext1.url.visible = false

this.parent.parent.htmllinktext1.visible := false

There is no "visible" property associated with "url". You should also
have the command noted below. Suggest you use the := construct when
assigning values, this would have returned an error if you had.

>                 else
>                    this.parent.parent.htmllinktext1.url = ""+this.fields["choo"].value

this.parent.parent.htmllinktext1.visible := true

>                 endif

> Ken Mayer Wrote:
>> On 2/1/2020 8:45 AM, Charlie wrote:
>>> Hi..
>>> I'm working with the and it works great with a problem.
>>> I am in a form that basically shows my inventory.  I now have auction numbers for items in that form which is new.  So what I am doing is have the link show above an entryfield with the auction number.  If you click on the link it goes directly to that auction on my site so you can view it.  That works fine.
>>> But throughout my inventory if you browse there are many, many items that have a quantity of zero and have no auction number or the number zero as this is a numeric field.
>>> So if you click on the link above a zero auction number it takes you to internet explorer which is not what I want.
>>> I would just like it to do nothing if the number is zero.
>>> To fix this will I have to alter htmllink or can I do it somehow in my inventory form?  I  tried an if else statement in navigation but that doesn't do anything  because the navigation has already happened.
>>> Thanks for any help!!
>> You will probably need to do something in an onNavigate that checks the
>> value, and then sets the visible property to false if the number is
>> zero, and true if it is > 0 ...
>> If you set it to a visible of false it should immediately turn off the
>> display ...
>> Ken
>> --
>> *Ken Mayer*
>> Ken's dBASE Page:
>> The dUFLP:
>> dBASE Books:
>> dBASE Tutorial:

*Ken Mayer*
Ken's dBASE Page:
The dUFLP:
dBASE Books:
dBASE Tutorial: