if isvl: BP.OperationAmount[a][i] = vl * BP.OperationModeSign[a][i]
if ismk: BP.OperationMark[a][i] = mk
BP.AccountRefreshScreen()
f.Close()
cnames = BP.CategName
CTrimNames = []
CPositions = {-1: -1}
CIndexes = {-1: -1}
CNames = []
for i, c in enumerate(cnames):
p = c.find("=")
CNames.append(c[p+1:])
CTrimNames.append(c[p+1:].strip())
idx = int(c[:p])
CPositions[idx] = i
CIndexes[i] = idx
CNames = ["-- Aucune --"] + CNames
modes = [BP.OperationGetNameFromModeIndex(i) for i in range(10)]
l1, l2 = BP.LineSelect(-1), BP.LineSelect(-2)
if l1 > l2: l1, l2 = l2, l1
idx = [i for i in BP.VisibleLines() if i >= l1 and i <= l2]
f = CreateComponent("TForm", None)
f.SetProps(Position="poMainFormCenter", Width=350, Height=360, BorderStyle="bsSingle", BorderIcons=["biSystemMenu","biMinimize"], Caption="Modifier un groupe d'opΘrations")