Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Tuesday, May 15, 2018

Google Sheets script paster

Purely for my own reference, cos I get so fed up typing this into new projects.

function doTheMenu() {
  var ui = SpreadsheetApp.getUi();
  ui.createMenu('DugeenMenu')
      .addItem('Caption', 'functionToCall')
      .addToUi();
}

function dObject(params) {
  this.member = params;
}

dObject.prototype = {
  method: function(params) {
    // this.member etc   
  },
  method2: function(moreParams, evenMoreParams) {
  }
};

Followers

Blog Archive