Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as Plain Text by code ( 13 years ago )
-(NSString *)requetsparamFromValue
{

NSString *str;
if([dict_info count]>0)
str=[NSString stringWithFormat:@"%@,%@,%@,%@,%@,%@,%@,%@,%@,%@",
([dict_info valueForKey:@"Name"])?[dict_info valueForKey:@"Name"]:@"",
([dict_info valueForKey:@"PhoneNumber"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"PhoneNumber"]]:@"",
([dict_info valueForKey:@"Email"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Email"]:@"",
([dict_info valueForKey:@"Currency"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Currency"]:@"",
([dict_info valueForKey:@"Address"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Address"]:@"",
([dict_info valueForKey:@"Address1"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Address1"]:@"",
([dict_info valueForKey:@"City"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"City"]:@"",
([dict_info valueForKey:@"State"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"State"]:@"",
([dict_info valueForKey:@"Country"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Country"]:@"",
([dict_info valueForKey:@"Postal"])?[NSString stringWithFormat:@"%@",[dict_info valueForKey:@"Postal"]]:@""];

return str;

}

 

Revise this Paste

Your Name: Code Language: