>Hello all
>I just started on an old VFP code using West Wind and Visual studio (to this WWC layman it seems a little contrived. But it works... somehow...).
>
>Anyway is there an "IF" statement in HTML. I've never seen it, but I wish I had it now.
>I'm looking for something like this.
>
>IF <MyCondition>
> <tr>
> <td align="center" style="height: 26px">
> <ww:wwWebButton ID="btnOptOut" runat="server" Width="80" Text="Opt Out" Click="btnOptOut_Click"/>
> </td>
> </tr>
>Else
> <tr>
> <td align="center" style="height: 26px">
> <ww:wwWebButton ID="btnOptOut" runat="server" Width="80" Text="Opt In" Click="btnOptOut_Click"/>
> </td>
> </tr>
>
>End if
>
>
>I need the HTML version of the IF statment, if it exist.
>
>TIA.
Sam,
I think it was not the right way to do it but when I did my single WWC application I wrote all HTML in code. Thus I had access to all VFP commands. Something like:
set textmerge to memvar m.lcOutput noshow
set textmerge on
if ...
\ ...
else
\ ...
endif
set textmerge to
set textmerge off
Response.Write(m.lcOutput) && check FastWrite,addheader and such
Cetin