| Description |  
| 
The StringToWideChar function converts a string SourceString into a WideString. It then copies TargetSize-1 characters from there to the TargetBuffer, adding a terminating 0 to the end.
 |  
 |  
| Related commands |  
| 
 | 
 
 
 | 
  | 
| Example code : A simple example |  
 var 
  wideChars   : array[0..11] of WideChar; 
  myString    : String; 
 
begin   // Set up our string 
  myString := 'Hello World'; 
   // Copy to a WideChar format in our array 
  StringToWideChar(myString, wideChars, 12); 
   // Show what the copy gave 
  ShowMessage(WideCharToString(wideChars)); 
end; 
 |  
 
| Show full unit code | 
 
   Hello World 
 
 |  
 
 |