What do you want to save?
Add Code snippet
New code examples
-
VBA 2022-03-27 20:55:02
excel vba check if all substrings in list are in string
'VBA function to check if ALL of a list of substrings is contained 'within a string: Function AllIn(s$, ParamArray checks()) As Boolean Dim e For Each e In checks If 0 = InStrB(s, e) Then Exit Function Next AllIn = True End Functi... Add solution -
VBA 2022-02-28 11:20:01
excel vba force array elements to alphanumeric
'VBA function (extremely fast) to force an array column 'to ONLY alpha-numeric characters (with spaces): Function ForceArrayColumnAlphaNumeric(v, Optional col& = 1) Dim i&, j&, p&, max&, t& Dim b() As Byte, res() As Byte,... Add solution -
VBA 2022-02-25 05:20:02
excel vba multiple string search with InStr function
'VBA function to check if ANY of a list of substrings is contained 'within a string: Function AnyIn(s$, ParamArray checks()) As Boolean Dim e For Each e In checks If InStrB(s, e) Then AnyIn = True: Exit Function Next End Function '... Add solution -
C 2022-01-29 10:36:54
RTOS task status
/* This example demonstrates how a human readable table of run time stats information is generated from raw data provided by uxTaskGetSystemState(). The human readable table is written to pcWriteBuffer. (see the vTaskList() API function which actually do... Add solution -
C# 2022-01-27 08:05:03
c# check if object is instance of class
using System; public interface IExample {} public class BaseClass : IExample {} public class DerivedClass : BaseClass {} public class Example { public static void Main() { var interfaceType = typeof(IExample); var base1 = new B... Add solution -
Javascript 2022-01-23 09:56:44
8.3.1. Common Array Methods // includes Examples (.includes)
//The general syntax for this method is: arrayName.includes(item) /*This method checks if an array contains the item specified in the parentheses (), and returns true or false.*/ let charles = [1, 7, 5, 9, 5]; let otherArr = ['hello', 'world!']; consol... Add solution -
VBA 2022-01-22 21:26:29
Excel VBA hide sheets with names in array
Sheets(arr).Visible = False 'Note1: For this to work without an error, 'arr' needs to be a 1D array with a ' valid and actual sheet name in each element. 'Note2: An array cannot be used to make sheets visible if they are hidden. ' This arra... Add solution -
Other 2022-01-22 15:41:22
filehelper engine readfile
using FileHelpers; // First declare the record class [Delimitedrecord("|")] public class SampleType { public string Field1; public int Field2; } public void ReadExample() { var engine = new FileHelperEngine<SampleType>()... Add solution