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
> >
> >
>
>
|
|
|
 |