Subject Re: htmlliink cc
From Charlie <tm@tc.com>
Date Sat, 01 Feb 2020 15:51:20 -0500
Newsgroups dbase.getting-started

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
                else
                   this.parent.parent.htmllinktext1.url = "https://www.choochooauctions.com/cgi-bin/ua/item.pl?item="+this.fields["choo"].value
                endif

Ken Mayer Wrote:

> On 2/1/2020 8:45 AM, Charlie wrote:
> > Hi..
> >
> > I'm working with the htmllink.cc 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: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm