Everything else that doesn't fall into one of the other PB categories.
			
		
		
			
				
																			
								Xombie 							 
						Addict 			
		Posts:  898 Joined:  Thu Jul 01, 2004 2:51 amLocation:  Tacoma, WA
				Contact: 
				
			 
				
		 
		
						
						
													
							
						
									
						Post 
					 
								by Xombie  Thu May 04, 2006 10:38 pm 
			
			
			
			
			Shouldn't PeekS() in this case...
Code: Select all 
a.s = "Note:  a combination of PokeS() and PeekS() can be used..."
b.l = @a + 14
Debug "'"+Mid(a, 8, 10)+"'"
Debug "'"+PeekS(b, 10)+"'"
Return 'a com' rather than 'a combinat' ?  The help file says "An optional 'Length' parameter (in bytes) can be specified."  So in unicode, each character is 2 bytes, right?
 
		 
				
		
		 
	 
				
			
		
		
			
				
																			
								thefool 							 
						Always Here 			
		Posts:  5875 Joined:  Sat Aug 30, 2003 5:58 pmLocation:  Denmark 
		
						
						
						 
													
							
						
									
						Post 
					 
								by thefool  Thu May 04, 2006 10:43 pm 
			
			
			
			
			Debug SizeOf(character)
= 1.
 
when you do @string + 5 (bytes..) you also get 5 chars ahead, not 2.5
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Xombie 							 
						Addict 			
		Posts:  898 Joined:  Thu Jul 01, 2004 2:51 amLocation:  Tacoma, WA
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Xombie  Thu May 04, 2006 11:51 pm 
			
			
			
			
			I forgot to mention "when compiled with /UNICODE".  That should force the .c to be two bytes.
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								ABBKlaus 							 
						Addict 			
		Posts:  1143 Joined:  Sat Apr 10, 2004 1:20 pmLocation:  Germany 
		
						
						
						 
													
							
						
									
						Post 
					 
								by ABBKlaus  Fri May 05, 2006 7:58 am 
			
			
			
			
			I guess the helpfile is wrong it should say 'chars'  
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Fred 							 
						Administrator 			
		Posts:  18351 Joined:  Fri May 17, 2002 4:39 pmLocation:  France
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Fred  Fri May 05, 2006 10:16 am 
			
			
			
			
			True, it should be characters, i will update the doc. Your code should look like this to be unicode compliant:
Code: Select all 
a.s = "Note:  a combination of PokeS() and PeekS() can be used..."
b.l = @a + 7*SizeOf(Character)
Debug "'"+Mid(a, 8, 10)+"'"
Debug "'"+PeekS(b, 10)+"'" 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Nik 							 
						Addict 			
		Posts:  1017 Joined:  Fri May 13, 2005 11:45 pmLocation:  Germany
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Nik  Fri May 05, 2006 1:27 pm 
			
			
			
			
			I don't think it's a good idea to have lengt parameters for memory functions in chars instead of in bytes though one can also use copymemory.
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Fred 							 
						Administrator 			
		Posts:  18351 Joined:  Fri May 17, 2002 4:39 pmLocation:  France
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Fred  Fri May 05, 2006 1:55 pm 
			
			
			
			
			PeekS() read a string, i don't see why we should should allow to pick an 'half' character in unicode, it's no sens IMHO.
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								josku_x 							 
						Addict 			
		Posts:  997 Joined:  Sat Sep 24, 2005 2:08 pm 
		
						
						
						 
													
							
						
									
						Post 
					 
								by josku_x  Fri May 05, 2006 3:12 pm 
			
			
			
			
			And, even if we could pick half characters, for what are they good? I have not seen a program that uses a half A: 
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Nik 							 
						Addict 			
		Posts:  1017 Joined:  Fri May 13, 2005 11:45 pmLocation:  Germany
				Contact: 
				
			 
				
		 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Nik  Fri May 05, 2006 4:25 pm 
			
			
			
			
			yeah ok you are probably right
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								Trond 							 
						Always Here 			
		Posts:  7446 Joined:  Mon Sep 22, 2003 6:45 pmLocation:  Norway 
		
						
						
						 
													
							
						
									
						Post 
					 
								by Trond  Fri May 05, 2006 5:27 pm 
			
			
			
			
			josku_x wrote: And, even if we could pick half characters, for what are they good? I have not seen a program that uses a half A: 
I've seen one that uses a lot of half letters. They call it AbiWord.
 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								josku_x 							 
						Addict 			
		Posts:  997 Joined:  Sat Sep 24, 2005 2:08 pm 
		
						
						
						 
													
							
						
									
						Post 
					 
								by josku_x  Fri May 05, 2006 8:28 pm 
			
			
			
			
			Ok, I'll look for that.