CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 simple if syntax CCS

Print topic Send  topic

Author Message
J.D. Archer
Posted: 11/21/2002, 3:14 PM

How would I go about writing out a simple if statement if x = 3 then y= 4.
I tried this today

global $formname;

if ($fornname->controlx->Value == 3)
{
$formname->controly->SetValue("4");
// I also tried
// $formname->controly->Value = 4;
}

any ideas


--


J.D. Archer
Network Engineer
859-312-7012
http://www.jdarcher.net

Maris Kalnins
Posted: 11/21/2002, 10:54 PM

I suspect that it will look like this:

global $formname;
if ($fornname->controlx->GetValue() == 3)
{
$formname->controly->SetValue("4");
}




"J.D. Archer" <jarcher@engineer.com> wrote in message
news:arjpbt$ti0$1@news.codecharge.com...
> How would I go about writing out a simple if statement if x = 3 then y=
4.
> I tried this today
>
> global $formname;
>
> if ($fornname->controlx->Value == 3)
> {
> $formname->controly->SetValue("4");
> // I also tried
> // $formname->controly->Value = 4;
> }
>
> any ideas
>
>
> --
>
>
> J.D. Archer
> Network Engineer
> 859-312-7012
> http://www.jdarcher.net
>
>

J.D. Archer
Posted: 11/22/2002, 12:40 AM

I read a article that you are not supposed to use the setvalue becasue it
does other stuff.

--


J.D. Archer
Network Engineer
859-312-7012
http://www.jdarcher.net
"Maris Kalnins" <proximus@mail.teliamtc.lv> wrote in message
news:arkkbo$dhe$1@news.codecharge.com...
> I suspect that it will look like this:
>
> global $formname;
> if ($fornname->controlx->GetValue() == 3)
> {
> $formname->controly->SetValue("4");
> }
>
>
>
>
> "J.D. Archer" <jarcher@engineer.com> wrote in message
>news:arjpbt$ti0$1@news.codecharge.com...
> > How would I go about writing out a simple if statement if x = 3 then y=
> 4.
> > I tried this today
> >
> > global $formname;
> >
> > if ($fornname->controlx->Value == 3)
> > {
> > $formname->controly->SetValue("4");
> > // I also tried
> > // $formname->controly->Value = 4;
> > }
> >
> > any ideas
> >
> >
> > --
> >
> >
> > J.D. Archer
> > Network Engineer
> > 859-312-7012
> > http://www.jdarcher.net
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.