have the following:

i = i +1;

string temp2 = s;

If (i=1)

{

(textBox6.Text = temp2);


}

I get complier error saying ; is missing after If (i=1)



What is the correct syntax c# 2005 pocket PC SDK

Re: If then newbie by Tim

Tim
Sun Mar 12 14:46:38 CST 2006

Try something like this... (where "s" is assumed to be declared as something
such as string s = "somevalue")

string temp2 = s;
i++;
if (i == 1)
{
textBox6.Text = temp2;
}

--
Tim Wilson
.NET Compact Framework MVP

"Park2" <Stevewarby@btinternet.com> wrote in message
news:%23%23nKrShRGHA.4956@TK2MSFTNGP09.phx.gbl...
> have the following:
>
> i = i +1;
>
> string temp2 = s;
>
> If (i=1)
>
> {
>
> (textBox6.Text = temp2);
>
>
> }
>
> I get complier error saying ; is missing after If (i=1)
>
>
>
> What is the correct syntax c# 2005 pocket PC SDK
>
>



Re: If then newbie by ctacke/>

ctacke/>
Sun Mar 12 15:13:08 CST 2006

You've made a classic newbie mistake.

should be:

if( i == 1)

not

if(i = 1)


-Chris


"Park2" <Stevewarby@btinternet.com> wrote in message
news:%23%23nKrShRGHA.4956@TK2MSFTNGP09.phx.gbl...
> have the following:
>
> i = i +1;
>
> string temp2 = s;
>
> If (i=1)
>
> {
>
> (textBox6.Text = temp2);
>
>
> }
>
> I get complier error saying ; is missing after If (i=1)
>
>
>
> What is the correct syntax c# 2005 pocket PC SDK
>
>



Re: If then newbie by r_z_aret

r_z_aret
Mon Mar 13 17:12:22 CST 2006

On Sun, 12 Mar 2006 16:13:08 -0500, "<ctacke/>"
<ctacke_AT_OpenNETCF_com> wrote:

>You've made a classic newbie mistake.

Not just newbies:-{ But newbies can at least claim ignorance.


>
>should be:
>
>if( i == 1)
>
>not
>
>if(i = 1)
>
>
>-Chris
>
>
>"Park2" <Stevewarby@btinternet.com> wrote in message
>news:%23%23nKrShRGHA.4956@TK2MSFTNGP09.phx.gbl...
>> have the following:
>>
>> i = i +1;
>>
>> string temp2 = s;
>>
>> If (i=1)
>>
>> {
>>
>> (textBox6.Text = temp2);
>>
>>
>> }
>>
>> I get complier error saying ; is missing after If (i=1)
>>
>>
>>
>> What is the correct syntax c# 2005 pocket PC SDK
>>
>>
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com