XLSPalette: array[0..2] of Word = ($92, 0, 0);
XLSPalette[1]:=54;但是调试运行说XLSPalette[1]:=54;有这样的错误,什么原因???
[Error] aExport.pas(215): Left side cannot be assigned to怎样纠正??

解决方案 »

  1.   

    XLSPalette: array[0..2] of Word = ($92, 0, 0);
    //上面是类型声明。要使用这个类型,你还需要声明一个这个类型的变量。
    //比如你可以这个样子声明类型 和变量
    type
    TXLSPalette:array[0..2] of Word = ($92, 0, 0);
    ......var
         XLSPalette:TXLSPalette;
    ........
    begin
     XLSPalette[1]:=54;
    //现在可以使用了