Home » Community » Newbie corner » Characters displaying numbers 
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: Characters displaying numbers [message #27926 is a reply to message #27917] | 
			Tue, 10 August 2010 23:23    | 
		 
		
			
				
				
				
					
						  
						Sender Ghost
						 Messages: 301 Registered: November 2008 
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hello, Nick. 
 
When you get data from ArrayCtrl you get it in Value type. 
To convert it to integer type you can use ValueTo template: 
const Value& v = array.Get(0, 0); // some data from ArrayCtrl
int i;
if (IsNumber(v)) // Check for Number format
  i = ValueTo<int>(v); // conversion
else PromptOK("Error input format");
 
Also you can use atoi or CParser ReadNumber functions. 
 
Edit: 
But if I understood you correctly, you just need to change your DNA5, DNA3, RNA5, RNA3 type from char to String.
		
		
		[Updated on: Tue, 10 August 2010 23:36] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: Characters displaying numbers [message #27947 is a reply to message #27928] | 
			Wed, 11 August 2010 19:17    | 
		 
		
			
				
				
				
					
						  
						Sender Ghost
						 Messages: 301 Registered: November 2008 
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hello, Pavel. 
 
Thanks, for tip. I read about your experience with such problems on the forum. Practically, it looks like the same (on the 312 line of uppsrc/Core/Value.h), but compiler can do something otherwise. 
 
But, I guess, current problem is different. 
char *DNA5 = "A"; or just using A with quotes to Add function is more appropriate.
		
		
		[Updated on: Wed, 11 August 2010 19:18] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 06:47:28 CET 2025 
 Total time taken to generate the page: 0.05516 seconds 
 |