Ir para conteúdo

Featured Replies

Postado

Estou com um erro tão simples porém não sei como corrigir:

var

v1: integer;

v19: integer;

h: integer;

j: integer;

begin

v19 := (PosY);

v1 := (PosX);

h := StrToInt(LB1.Items.Strings[LB1.ItemIndex]);

j := StrToInt(LB2.Items.Strings[LB2.ItemIndex]);

if v1 = h and v19 = j then

LB1.ItemIndex := LB1.ItemIndex + 1

LB2.ItemIndex := LB2.ItemIndex + 1

end

Está dando erro na linha do and diz:

Incompatible Types

Editado por alfbru (veja o histórico de edições)

  • Respostas 6
  • Visualizações 442
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • var v1: Integer; v19: Integer; h: Integer; j: Integer; begin v19 := (PosY); v1 := (PosX); h := StrToInt(LB1.Items.Strings[LB1.ItemIndex]); j := StrToInt(LB2.Items.Strings[LB2.

Postado

var

  v1: Integer;

  v19: Integer;

  h: Integer;

  j: Integer;

begin

  v19 := (PosY);

  v1 := (PosX);

  h := StrToInt(LB1.Items.Strings[LB1.ItemIndex]);

  j := StrToInt(LB2.Items.Strings[LB2.ItemIndex]);

  if (v1 = h) and (v19 = j) then

    begin

	  LB1.ItemIndex := LB1.ItemIndex + 1;

	  LB2.ItemIndex := LB2.ItemIndex + 1

    end;

end;

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo