软件是从网上下载的
这是下载地址http://dl8.winu.cn/control/2003100921363623735.rar
编译时出现
[错误] HexEditor.pas(1727): Left side cannot be assigned to
[错误] HexEditor.pas(1758): Left side cannot be assigned to
[致命错误] sample1.pas(7): Could not compile used unit 'HexEditor.pas'
var
pTP : TLongPoint;const
pCan: Boolean = True;
pClicked : Boolean = False;
begin
Result := Inherited SelectCell ( aCol , aRow ); if (Result and fVariableLineLength and OutOfBounds ( aCol , aRow ))
then
Result := False; if not pCan
then
Exit;
try
pCan := false;//[color=#FF0000]出现错误[color=#FF0000]
if Result
then begin
// 黚erpr黤en, ob linke maustaste oder shift gedr點kt, sonst selection zur點ksetzen
if not (IsKeyDown ( VK_SHIFT) or IsKeyDown ( VK_LBUTTON) )
then
ResetSelection ( True ); // 黚erpr黤en, ob au遝rhalb der DateiGr鲞e
if GetPosAtCursor ( aCol , aRow ) >= DataSize
then begin
GetPosAtCursor ( Col , Row );
pTP := GetCursorAtPos ( DataSize - 1 , fPosInChars );
MoveColRow ( pTP.x , pTP.y , True , True );
Result := False;
end
else
if aCol = (2 + fBPL2 )
then begin
Result := False;
if IsKeyDown ( VK_LBUTTON )
then begin
aCol := aCol -1;
aCol := Max ( 2 , aCol );
MoveColRow ( aCol , aRow , True , True );
Exit;
end;
end; end;
finally
pCan := True;//[color=#FF0000]出现错误[color=#FF0000]
end;end;
这是下载地址http://dl8.winu.cn/control/2003100921363623735.rar
编译时出现
[错误] HexEditor.pas(1727): Left side cannot be assigned to
[错误] HexEditor.pas(1758): Left side cannot be assigned to
[致命错误] sample1.pas(7): Could not compile used unit 'HexEditor.pas'
var
pTP : TLongPoint;const
pCan: Boolean = True;
pClicked : Boolean = False;
begin
Result := Inherited SelectCell ( aCol , aRow ); if (Result and fVariableLineLength and OutOfBounds ( aCol , aRow ))
then
Result := False; if not pCan
then
Exit;
try
pCan := false;//[color=#FF0000]出现错误[color=#FF0000]
if Result
then begin
// 黚erpr黤en, ob linke maustaste oder shift gedr點kt, sonst selection zur點ksetzen
if not (IsKeyDown ( VK_SHIFT) or IsKeyDown ( VK_LBUTTON) )
then
ResetSelection ( True ); // 黚erpr黤en, ob au遝rhalb der DateiGr鲞e
if GetPosAtCursor ( aCol , aRow ) >= DataSize
then begin
GetPosAtCursor ( Col , Row );
pTP := GetCursorAtPos ( DataSize - 1 , fPosInChars );
MoveColRow ( pTP.x , pTP.y , True , True );
Result := False;
end
else
if aCol = (2 + fBPL2 )
then begin
Result := False;
if IsKeyDown ( VK_LBUTTON )
then begin
aCol := aCol -1;
aCol := Max ( 2 , aCol );
MoveColRow ( aCol , aRow , True , True );
Exit;
end;
end; end;
finally
pCan := True;//[color=#FF0000]出现错误[color=#FF0000]
end;end;
解决方案 »
- : 为什么别人提供的发送电子邮件的代码运行都出错呢?(指D7环境下)先谢谢!
- 不明白这两句语句 - -!
- 自定义了一个类,但是不会初始化,运行时错误Control '' has no parent window,郁闷,谁来教教我!
- To SQL字段与Oracle字段类型的问题
- 刚找到一份工作,过些天去上班!!要用到UDP,TCP/IP,Stock ,请问它们之间有什么区别?
- 谁能告诉我GIPS是什么?
- 执行此无任何窗体的文件可以同时执行G盘DOOR下的DOOR.EXE等多个程序
- 我想要一个VCLSKIN FOR DELPHI2010,谁可以提供给我吗,
- 用VCLskin更换皮肤的问题.
- 有誰用過 CodeRush ,談談用法及心得,小弟不會用啊.
- delphi如何查询LDAP
- 请教同表中,同字段数据相加减
完全同意楼上的
const
pCan: Boolean = True;
这一句前加上
{J+}成
{J+}
const
pCan: Boolean = True;
再试试
var
pTP : TLongPoint; pCan: Boolean ;
pClicked : Boolean = False;
begin
pCan := True;
Result := Inherited SelectCell ( aCol , aRow ); if (Result and fVariableLineLength and OutOfBounds ( aCol , aRow ))
then
Result := False; if not pCan
then
Exit;
try
pCan := false;//[color=#FF0000]出现错误[color=#FF0000]
if Result
then begin
// 黚erpr黤en, ob linke maustaste oder shift gedr點kt, sonst selection zur點ksetzen
if not (IsKeyDown ( VK_SHIFT) or IsKeyDown ( VK_LBUTTON) )
then
ResetSelection ( True ); // 黚erpr黤en, ob au遝rhalb der DateiGr鲞e
if GetPosAtCursor ( aCol , aRow ) >= DataSize
then begin
GetPosAtCursor ( Col , Row );
pTP := GetCursorAtPos ( DataSize - 1 , fPosInChars );
MoveColRow ( pTP.x , pTP.y , True , True );
Result := False;
end
else
if aCol = (2 + fBPL2 )
then begin
Result := False;
if IsKeyDown ( VK_LBUTTON )
then begin
aCol := aCol -1;
aCol := Max ( 2 , aCol );
MoveColRow ( aCol , aRow , True , True );
Exit;
end;
end; end;
finally
pCan := True;//[color=#FF0000]出现错误[color=#FF0000]
end;end;
const传的是值,是不变的,var传的才是可变的