我有一个简单的用户窗体,上面有一个按钮。我想将此表单传递给另一个模块中的函数-但即使在同一模块内,它也无法按预期工作:
Private Sub Test(ByRef oForm As MSForms.UserForm)
Debug.Print "caption: >" & oForm.Caption & "<"
End Sub
Private Sub CommandButton3_Click()
Debug.Print "caption: >" & Me.Caption & "<"
Test Me
Debug.Print "caption: >" & Me.Caption & "<"
End Sub
Run Code Online (Sandbox Code Playgroud)
当我单击按钮时,它将打印到调试控制台:
caption: >UserForm1<
caption: ><
caption: >UserForm1<
Run Code Online (Sandbox Code Playgroud)
所以Test()子里面Caption是空白。
任何想法为什么这不起作用?
注意:如果我使用它Variant作为参数类型
PostgreSQL 中是否实现了最后观察结转 (LOCF) 数据插补方法?
如果没有,我该如何实现这个方法?
2 天前,我的 node.js 构建在 gitlab-ci 服务器上停止工作。我真的不明白为什么。更多信息:
package.json文件还没有改变时,CI构建停止工作以下是错误日志的摘录:
> grpc@1.16.0 install /builds/vallen-bridge/source/server/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.16.0/node-v67-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.16.0 and node@11.1.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.16.0 and node@11.1.0 (node-v67 ABI, glibc) (falling back to source compile …Run Code Online (Sandbox Code Playgroud) 如何跳转到IntelliJ Idea(Ultimate)中Angular源代码的实现?
例如,当我按住 CTRL 键并单击Validators.maxIDE 时,将转到validators.d.ts- 中的声明,但我想查看validators.ts文件中的实际源代码。
在 Java 应用程序中,我们可以附加jar 文件的源,以使此功能发挥作用。
我正在 Angular 12 中尝试 ngx-charts 库,但我不断遇到这个问题:
类型“any[]”不可分配给类型“[number, number]”。
目标需要 2 个元素,但源可能更少。
我不知道这个错误意味着什么。
这是代码:
HTML:
<ngx-charts-linear-gauge
[view]="view"
[scheme]="colorScheme"
[value]="value"
[previousValue]="previousValue"
(select)="onSelect($event)"
[units]="units"
>
</ngx-charts-linear-gauge>
Run Code Online (Sandbox Code Playgroud)
TS:
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
single: any[];
view: any[] = [400, 400];
colorScheme = {
domain: ['#aae3f5']
};
value: number = 43;
previousValue: number = 70;
units: string = 'counts';
onSelect(event) {
console.log(event);
}
}
Run Code Online (Sandbox Code Playgroud)
关于错误的含义以及如何解决这个问题有什么想法吗?
ts配置代码是:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": …Run Code Online (Sandbox Code Playgroud) 我想在一行中有 2 个表单输入字段:1. 第一个有固定的,1. 第二个应该增长和缩小,但这不会缩小到 180px 以下。
这是一个完整的堆栈闪电战示例
有可能另一个问题:
我认为第二个输入字段应该已经显示提示文字和水平线-但它只会显示它时,它得到的焦点。
这是预期的行为还是我错过了什么?
反正。主要问题是第二个字段没有按预期缩小。它不会缩小到 180 像素以下:

在 chrome dev-tool 中,我可以看到input元素用 a 包裹,div class="mat-form-field-infix">并且类mat-form-field-infix的宽度固定为 180px!
我想出的唯一解决方法是使用 using 覆盖此宽度::ng-deep。
您可以在 Stackblitz 示例的co-input-field.component.scss文件中激活它
:host ::ng-deep .mat-form-field-infix {
// width: auto !important;
width: unset !important;
}
Run Code Online (Sandbox Code Playgroud)
但是::ng-deep 已被弃用并将被删除。
那么使输入按预期缩小的正确方法是什么?
angular ×2
angular12 ×1
excel ×1
gitlab-ci ×1
grpc-node ×1
imputation ×1
locf ×1
missing-data ×1
ngx-charts ×1
node.js ×1
postgresql ×1
userform ×1
vba ×1