For example the following code:
Procedure TfmPurchaseOrder. FrxGridGetValue (const VarName: string; Var Value: the Variant);
The begin
If comparetext (varname, 'ITEM NO)=0 then
Value:=sglist. Cells [2, frxgrid RecNo];
If varname='ITEM NO then
Value:=sglist. Cells [2, frxgrid RecNo]
Else if varname='CODE' then
Value:=sglist. Cells [12, frxgrid RecNo];
end;

NO matter use comparetext or direct comparison, step through it shows varname 'ITEM NO # 9
Consult everybody how to deal with?
Because I found in the same form of the combobox items in the edit box is also the value of each row behind have a this', see figure

CodePudding user response:
First used, combobox items didn't met with blank, is it your editor Settings?Can't find the reason with the first, with trim (string), or the copy (string, 1, length (string) - 1) removed at the end of the space,
CodePudding user response:
I don't know why, I built a project again, with this control, as if no problem,