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

Gräfelfing, 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

Merritt Island, 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.
Sign up to receive email when someone responds
(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.

Install the Topix Community Toolbar

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

Cars [ See all ]

Indian River Shores Jobs

Mortgages [ See current mortgage rates ]
Indian River Shores Dating

more search filters

less search filters

Indian River Shores People Search

Addresses and phone numbers for FREE

Indian River Shores News, Events & Info

Click for news, events and info in Indian River Shores

Daily Horoscope for December 26

Pisces

Mercury's retro phase in Capricorn will raise questions in your mind about a friend or loved one during the next two weeks. You might wonder what they're playing at and have to ask them to be straight with you, or you could work hard at overcoming the current problems between you so you're able to enter a much more positive phase in your relationship.

Get your Horoscope »