
Untitled
By: a guest on
Jun 16th, 2012 | syntax:
None | size: 0.47 KB | hits: 18 | expires: Never
iphone method return NSString returns nothing
- (NSString *) GetText:(char*) FieldName compiledStatement:(sqlite3_stmt*) cs {
char *c = (char *) sqlite3_column_text(cs, [self get_column_index:cs zName:FieldName] ) ;
if (c != NULL) return (NSString *)c; else return @"";
}
User = [self GetText:"Name" compiledStatement:compiledStatement];
NSString *User;
if (c != NULL)
return [NSString stringWithCString:c encoding:NSUTF8StringEncoding];
return @""