What do you want to save?
Add Code snippet
New code examples
-
VBA 2021-12-23 17:05:25
excelvba Convert HEX string to Unsigned INT
'VBA function to convert a hexadecimal string into a decimal. Uses 'the Decimal Variant subtype to allow for much larger values than the 'worksheet function HEX2DEC() or CLng("&h" & HexVal) can achieve. It 'returns an UNSIGNED Decimal i... Add solution -
Javascript 2021-11-21 14:40:31
code to convert rgb to hsl color
// see: https://en.wikipedia.org/wiki/RGB_color_model // see: https://en.wikipedia.org/wiki/HSL_and_HSV // expects R, G, B, Cmax and chroma to be in number interval [0, 1] // returns undefined if chroma is 0, or a number interval [0, 360] degrees functio... Add solution -
SQL 2021-11-21 07:18:19
sql string functions
ASCII Returns the equivalent ASCII value for a specific character. CHAR_LENGTH Returns the character length of a string. CHARACTER_ LENGTH Same as CHAR_LENGTH. CONCAT Adds expressions together, with a minimum of 2. CONCAT_WS Adds expressions together, but... Add solution -
Javascript 2021-11-16 09:18:38
how to shallow clone javascript class
class myClass { constructor() { this.str = "String"; //Defining a string this.number = 3; //Defining a number } } var classReference = new myClass(); //Making new instance of class var myObjectToCopy; function copyClass() { myObj... Add solution -
VBA 2021-11-14 14:26:14
vba hexidecimal string to decimal
'VBA function to convert a hexadecimal string into a decimal. Uses 'the Decimal Variant subtype to allow for much larger values than the 'worksheet function HEX2DEC() or CLng("&h" & HexVal) can achieve. It 'returns an UNSIGNED Decimal i... Add solution -
Other 2021-11-14 07:09:13
Save and load richedit to mdb
//Get the data from the database as AnsiString rtfString := sql.FieldByName('rtftext').AsAnsiString; //Write the string into a stream stream := TMemoryStream.Create; stream.Clear; stream.Write(PAnsiChar(rtfString)^, Length(rtfString)); stream.Position :=... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5