toExternal Summary Converts the character value to its equivalent external value. Usage public override external toExternal() Returns The character value held by the System.Character object. Description Converts the character value to its equivalent external value. Examples Basic Usage 1234567891011121314151617181920import System; external mysql = { query: function(q, a) { Console.log(q, a); } }; // Constrain type arguments to only classes that can convert to 'external'interface ICommand<T: IExportable>{ void execute(...T args);} class InsertUserInitial : ICommand<Character>{ final void execute(...Character args) { char c = args[0] ?? `\u0000`; mysql.query("INSERT INTO `users`(`first_initial`) VALUES(?);", c.toExternal()); }} auto insertUserInitialCommand = new InsertUserInitial();insertUserInitialCommand.execute(`r`); Share HTML | BBCode | Direct Link