Local News: Indian River Shor... 

 | 

Sign Up

 | 

Sign In

Advertisment

Simple If Statement Problem

Posted in the Indian River Shores Forum

Comments

Showing posts 1 - 2 of2
Max

Munich, Germany

|
Report Abuse
|
Judge it!
|
#1
Jul 3, 2009
 
Hi Everyone,

This code gives me this error: "Assignment from incompatible pointer type"

NSTabViewItem *tvi =[tv selectedTabViewItem];

if (tvi = "Other")
{
[x becomeFirstResponder];
}

Thanks for the help!

Max
Khandurian

Cocoa, FL

|
Report Abuse
|
Judge it!
|
#2
Jul 4, 2009
 
You have no "then" statement or an "else" statement.

A program has to know what to do if it cannot match the "if" declaritive.

In other words, if tvi does not = other, it has to know what to do next.
Tell me when this thread is updated!
(registration is not required)
Showing posts 1 - 2 of2
Type in your comments to post to the forum
Name
(appears on your post)
Comments
Type the numbers you see in the image on the right:

Please note by clicking on "Post Comment" you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Other Recent Indian River Shores Discussions

Search the Indian River Shores Forum:
Topic Updated Last By Comments
vero beach gay life style (Aug '08) 12 hr Gays 25
Shocked: 7-Eleven air pump sends man to hospital Nov 10 Joe Kister 32
moving to vero beach (Mar '07) Nov 9 Harold Scott 51
Sebastian mother who left baby in car charged w... Nov 8 buddahbaby 2
Terrorizing y'alls neighborhoods across Brevard Nov 6 kip 2
Health Care - Cocoa, FL Nov 4 Libertyman 3
Wilson, Heady win in Vero City Council race Nov 4 nancy 3

Install the Topix Community Toolbar

Never miss another reply to your comments, no matter where you are on the web.

Cars [ See all ]
Mortgages [ See current mortgage rates ]
Featured Coupons

Indian River Shores News, Events & Info

Click for news, events and info in Indian River Shores

Daily Horoscope for November 16

Leo

The New Moon in your fourth house of home and family may find you longing to stay cuddled up in bed. Many of you will want to sleep late this morning, but few of you have the luxury to do so. If you can spend more time at home with your family in the coming days, you'll be glad you did. In the immortal words of Dorothy: 'There's no place like home!'

Get your Horoscope »