set grid11 = dynamic.GetGridByName("Window11")
set Formula1 = grid11.GetFormulaByName("A")
set Formula2 = grid11.GetFormulaByName("B")
call GetData("Windows11Flag", f1)
if f1 = 0 then
call SetData("Windows11Flag", 1)
call grid11.InsertFormula("A",-1)
end if
if f1 = 1 then
call SetData("Windows11Flag", 0)
call grid11.InsertFormula("B",-1)
end if
grid11.ReInitDataFormula
这样的代码为什么老崩溃, 功能就是 按热键 切换不同的指标, 在dynamic框架中
用排除法看看是不是你自己封装的东西导致的