theofficecontext.com - Solutions for Microsoft Office, and more...

Description: Microsoft Office Web Add-ins (JavaScript/OfficeJS), Visual Studio Tools for Office (VSTO), Visual Basic for Applications (VBA), samples, source, how to, and much more.

Example domain paragraphs

Solutions for Microsoft Office, and more…

I have been working on some new code and found a need to make a series of calls to server-side PHP, where it would process data in a MySQL database, munch on some data and then return a result. I wanted to perform this operation inside a class constructor, so I could essentially do something like this:

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters const myObj = new MyClassToCallTheServer ( ) ; let someValue = myObj . doSomegthingWithTheServerData ( ) ; view raw inline1.js hosted with ❤ by GitHub The problem is that a constructor in JavaScript cannot be declared async and you cannot pla