mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Merge pull request #25924 from zspitz/activex-access
activex-access: Microsoft Access Automation definitions
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/// <reference types="windows-script-host" />
|
||||
|
||||
let app = new ActiveXObject('Access.Application');
|
||||
app.UserControl = true;
|
||||
|
||||
@@ -6,7 +8,7 @@ app.DoCmd.OpenForm('MyForm', Access.AcFormView.acNormal, '', 'LastName="Smith"')
|
||||
|
||||
// change the contents of a textbox
|
||||
// tslint:disable-next-line:no-unnecessary-type-assertion
|
||||
let textbox = app.Forms.Item('MyForm').Controls.Item('MyTextBox') as Access.TextBox;
|
||||
let textbox = app.Forms('MyForm').Controls('MyTextBox') as Access.TextBox;
|
||||
textbox.Text = 'Not Smith';
|
||||
|
||||
// save the current record on the active form
|
||||
|
||||
2299
types/activex-access/index.d.ts
vendored
2299
types/activex-access/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-const-enum": false
|
||||
"no-const-enum": false,
|
||||
"max-line-length": false
|
||||
}
|
||||
}
|
||||
|
||||
6
types/activex-stdole/index.d.ts
vendored
6
types/activex-stdole/index.d.ts
vendored
@@ -7,14 +7,20 @@
|
||||
/// <reference types="activex-interop" />
|
||||
|
||||
declare namespace stdole {
|
||||
type IFontDisp = StdFont;
|
||||
|
||||
type IPictureDisp = StdPicture;
|
||||
|
||||
type OLE_COLOR = number;
|
||||
|
||||
type OLE_XPOS_CONTAINER = number;
|
||||
|
||||
type OLE_XPOS_PIXELS = number;
|
||||
|
||||
type OLE_YPOS_CONTAINER = number;
|
||||
|
||||
type OLE_YPOS_PIXELS = number;
|
||||
|
||||
const enum LoadPictureConstants {
|
||||
Color = 4,
|
||||
Default = 0,
|
||||
|
||||
Reference in New Issue
Block a user