If aScan( aVetTTP , {|x| x[ATT_VETSEL] == .t. } ) == 0 MsgAlert(STR0053) // "Selecionar um registro para faturamento" Return .f. EndIf aBotOpcoes := {} AADD( aBotOpcoes , { STR0044 , 'OX100BOTOPC(01)' } ) // "Cliente" AADD( aBotOpcoes , { STR0045 , 'OX100BOTOPC(02)' } ) // "Posicao Analitica dos Servicos" If ExistBlock("OX100BTO") aAuxBotParc := ExecBlock("OX100BTO",.f.,.f.) If ValType(aAuxBotParc) == "A" For nCntFor := 1 to Len(aAuxBotParc) AADD( aBotOpcoes , aClone(aAuxBotParc[nCntFor]) ) Next nCntFor EndIf EndIf nQtdeBot := Len(aBotOpcoes) // Qtde de Botoes na Dialog nDist := 3 // Distancia entre os botoes nAltura := 12 // Altura de cada botao nLinha := 2 // Linha para atual para criar o botao nLargura := 118 // Largura de cada botao SetKey(VK_F10,{|| Nil }) |