由于某种原因,此代码不会阻止俄语(西里尔字母)字符的输入
procedure Tf_main.KeyPress_ENG(Sender: TObject; var Key: Char);
begin
if (Key in ['А'..'я']) then
Key := #0;
end;
由于某种原因,此代码不会阻止俄语(西里尔字母)字符的输入
procedure Tf_main.KeyPress_ENG(Sender: TObject; var Key: Char);
begin
if (Key in ['А'..'я']) then
Key := #0;
end;
执行 'a 时是否可以insert
获取赋予记录的索引。实现insert
“a via”模型:
class Test
{
public int Id { get; set; }
public string str1 { get; set; }
public string str2 { get; set; }
public void insert()
{
using (var db = new LiteDatabase(@"LocalBD.db"))
{
var col = db.GetCollection<Test>("Test");
col.Insert(new Test { str1 = this.str1, str2 = this.str });
}
}
}