... Nil &&ATIVA OS BOTOES
ponteiro :=HB_AScan(matriz_Botao_Artigo, { |x| ValType( x ) == "C" .AND. x == aNomeButton } )
IF ponteiro==0
HB_AIns( matriz_Botao_Artigo, , aNomeButton, .T. )
ENDIF
Carrega_Botoes_Artigos( aNomeButton )
ENDIF
Return Nil
No formulário PanelFamilias quando ...
Pesquisa resultou em 58 ocorrências: +AIns
Termo pesquisado: +ains
- 11 Jan 2026 12:24
- Fórum: MiniGui
- Tópico: Ajuda na criação de Botões
- Respostas: 25
- Exibições: 574
- 10 Jan 2026 11:52
- Fórum: MiniGui
- Tópico: Ajuda na criação de Botões
- Respostas: 25
- Exibições: 574
Re: Ajuda na criação de Botões
... OS BOTOES DA ESCOLHA CORRENTE
ponteiro :=HB_AScan(matriz_Botao_Artigo, { |x| ValType( x ) == "C" .AND. x == aNomeButton } )
IF ponteiro==0
HB_AIns( matriz_Botao_Artigo, , aNomeButton, .T. )
ENDIF
Carrega_Botoes_Artigos( aNomeButton )
ENDIF
Return Nil
Basta fazer isto com o nome do botão na ...
ponteiro :=HB_AScan(matriz_Botao_Artigo, { |x| ValType( x ) == "C" .AND. x == aNomeButton } )
IF ponteiro==0
HB_AIns( matriz_Botao_Artigo, , aNomeButton, .T. )
ENDIF
Carrega_Botoes_Artigos( aNomeButton )
ENDIF
Return Nil
Basta fazer isto com o nome do botão na ...
- 25 Mar 2025 15:06
- Fórum: [x]Harbour
- Tópico: PROBLEMAS AO CONVERTER HB_BASE64 UTF8 UTF-8
- Respostas: 14
- Exibições: 3527
PROBLEMAS AO CONVERTER HB_BASE64 UTF8 UTF-8
... StrToHex( <c> )
#xtranslate hb_AScan( [<x,...>] ) => AScan( <x> )
#xtranslate hb_RAScan( [<x,...>] ) => RAScan( <x> )
#xtranslate hb_AIns( [<x,...>] ) => AIns( <x> )
#xtranslate hb_ADel( [<x,...>] ) => ADel( <x> )
#xtranslate hb_At( [<x,...>] ) => At( <x> )
#xtranslate hb_DateTime ...
#xtranslate hb_AScan( [<x,...>] ) => AScan( <x> )
#xtranslate hb_RAScan( [<x,...>] ) => RAScan( <x> )
#xtranslate hb_AIns( [<x,...>] ) => AIns( <x> )
#xtranslate hb_ADel( [<x,...>] ) => ADel( <x> )
#xtranslate hb_At( [<x,...>] ) => At( <x> )
#xtranslate hb_DateTime ...
- 29 Mai 2023 10:26
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
... cName != "Mainwin"
RETURN Nil
ENDIF
aList := { ::cName }
oThis := Self
oThisAnt := oThis
DO WHILE ( oThis := oThis:oParent ) != Nil
hb_AIns( aList, 1, oThis:cName, .T. )
oThisAnt := oThis
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
IF cName == "Activate"
::lCreated := .T ...
RETURN Nil
ENDIF
aList := { ::cName }
oThis := Self
oThisAnt := oThis
DO WHILE ( oThis := oThis:oParent ) != Nil
hb_AIns( aList, 1, oThis:cName, .T. )
oThisAnt := oThis
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
IF cName == "Activate"
::lCreated := .T ...
- 29 Mai 2023 09:28
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
... LOCAL aList, oThis, oThisAnt
aList := { ::cName }
oThis := Self
oThisAnt := oThis
DO WHILE ( oThis := oThis:oParent ) != Nil
hb_AIns( aList, 1, oThis:cName, .T. )
oThisAnt := oThis
ENDDO
IF oThisAnt:lCreated
DoMethod( hb_ArrayToParams( aList ), cName )
ENDIF
RETURN Nil ...
aList := { ::cName }
oThis := Self
oThisAnt := oThis
DO WHILE ( oThis := oThis:oParent ) != Nil
hb_AIns( aList, 1, oThis:cName, .T. )
oThisAnt := oThis
ENDDO
IF oThisAnt:lCreated
DoMethod( hb_ArrayToParams( aList ), cName )
ENDIF
RETURN Nil ...
- 29 Mai 2023 08:25
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
Olá Quintas;
Use hb_AIns( <aArray>, [<nPos>], [<xValue>], [<lAutoSize>] ) → aArray
Quanto ao assunto não depender do fonte HMG; é justamente o oposto do que penso, pois posso usar o designer para posicionar os objetos rapidamente sem interferir em absolutamente nada e quanto a mudanças no núcleo da ...
Use hb_AIns( <aArray>, [<nPos>], [<xValue>], [<lAutoSize>] ) → aArray
Quanto ao assunto não depender do fonte HMG; é justamente o oposto do que penso, pois posso usar o designer para posicionar os objetos rapidamente sem interferir em absolutamente nada e quanto a mudanças no núcleo da ...
- 28 Mai 2023 22:13
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
Parece piada, mas apanhando com coisa básica.
Aquele AIns()..... não deu certo.
AIns() insere, mas ele não altera o tamanho do array, então o array ficava sempre só com um elemento.
Aquele AIns()..... não deu certo.
AIns() insere, mas ele não altera o tamanho do array, então o array ficava sempre só com um elemento.
- 28 Mai 2023 17:42
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
... METHOD DoMethod( cName ) CLASS WINDOWClass
LOCAL aList, oThis
aList := { ::cName }
oThis := Self
DO WHILE ( oThis := oThis:oParent ) != Nil
AIns( aList, 1 )
aList[ 1 ] := oThis:cName
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
RETURN Nil
METHOD GetProperty( cName ) CLASS ...
LOCAL aList, oThis
aList := { ::cName }
oThis := Self
DO WHILE ( oThis := oThis:oParent ) != Nil
AIns( aList, 1 )
aList[ 1 ] := oThis:cName
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
RETURN Nil
METHOD GetProperty( cName ) CLASS ...
- 28 Mai 2023 17:28
- Fórum: MiniGui
- Tópico: hmg extend com oop
- Respostas: 29
- Exibições: 8270
hmg extend com oop
... METHOD DoMethod( cName ) CLASS WINDOWClass
LOCAL aList
aList := { ::cName }
oThis := Self
DO WHILE ( oThis := oThis:oParent ) != Nil
AIns( aList, 1 )
aList[ 1 ] := oThis:oParent:cName
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
RETURN Nil
Pra usar tipo: DoMethod( "form1 ...
LOCAL aList
aList := { ::cName }
oThis := Self
DO WHILE ( oThis := oThis:oParent ) != Nil
AIns( aList, 1 )
aList[ 1 ] := oThis:oParent:cName
ENDDO
DoMethod( hb_ArrayToParams( aList ), cName )
RETURN Nil
Pra usar tipo: DoMethod( "form1 ...
- 02 Nov 2021 11:47
- Fórum: [x]Harbour
- Tópico: Qual a última versão do Harbour 3.2?
- Respostas: 40
- Exibições: 8673
Qual a última versão do Harbour 3.2?
... StrToHex( <c> )
#xtranslate hb_AScan( [<x,...>] ) => AScan( <x> )
#xtranslate hb_RAScan( [<x,...>] ) => RAScan( <x> )
#xtranslate hb_AIns( [<x,...>] ) => AIns( <x> )
#xtranslate hb_ADel( [<x,...>] ) => ADel( <x> )
#xtranslate hb_At( [<x,...>] ) => At( <x> )
#xtranslate hb_DateTime ...
#xtranslate hb_AScan( [<x,...>] ) => AScan( <x> )
#xtranslate hb_RAScan( [<x,...>] ) => RAScan( <x> )
#xtranslate hb_AIns( [<x,...>] ) => AIns( <x> )
#xtranslate hb_ADel( [<x,...>] ) => ADel( <x> )
#xtranslate hb_At( [<x,...>] ) => At( <x> )
#xtranslate hb_DateTime ...
- 22 Set 2020 13:50
- Fórum: [x]Harbour
- Tópico: Classe obtendo nome do método/propriedade faltante
- Respostas: 2
- Exibições: 945
Classe obtendo nome do método/propriedade faltante
... aParams := hb_aParams()
if "(" $ aParams[ 1 ]
aParams[ 1 ] = StrTran( aParams[ 1 ], "()", "" )
endif
ASize( aParams, Len( aParams ) + 1 )
AIns( aParams, 1 )
aParams[ 1 ] = Self
return hb_execFromArray( aParams )
#endif
//------------------------------------------------//
METHOD ...
if "(" $ aParams[ 1 ]
aParams[ 1 ] = StrTran( aParams[ 1 ], "()", "" )
endif
ASize( aParams, Len( aParams ) + 1 )
AIns( aParams, 1 )
aParams[ 1 ] = Self
return hb_execFromArray( aParams )
#endif
//------------------------------------------------//
METHOD ...
- 17 Set 2020 12:03
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Adicionando uma coluna em um vetor bidimensional
- Respostas: 7
- Exibições: 2020
Adicionando uma coluna em um vetor bidimensional
... L1, L2, L3 }
Quer adicionar um elemento em cada uma das listas
AEval vai processar cada uma das listas
AEval( aPrincipal, { | e | AAdd( e, 4 ) } )
É isso?
Ou vai adicionar uma lista nova?
AAdd( aPrincipal, { 1, 2, 3 } )
O AIns() é pra INSERIR em outra posição que não seja a última
Quer adicionar um elemento em cada uma das listas
AEval vai processar cada uma das listas
AEval( aPrincipal, { | e | AAdd( e, 4 ) } )
É isso?
Ou vai adicionar uma lista nova?
AAdd( aPrincipal, { 1, 2, 3 } )
O AIns() é pra INSERIR em outra posição que não seja a última
- 17 Set 2020 11:28
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Adicionando uma coluna em um vetor bidimensional
- Respostas: 7
- Exibições: 2020
Adicionando uma coluna em um vetor bidimensional
Usando aEval e Hb_aIns, usado para adicionar em vetor bidimensional
Só pra não perder a dica.
Código: Selecionar todos
aAdd( aVetor, {"1", "2", "3"})
aEval( aVetor, {|e,n| Hb_aIns( aVetor, n, { e[1], e[2], e[3], "4" } ) } )
- 18 Ago 2020 17:54
- Fórum: Interface com Clientes
- Tópico: MediaMonkey / Aplicativos
- Respostas: 18
- Exibições: 10968
MediaMonkey / Aplicativos
... 20, 80, "Filter" )
DO WHILE .t.
acTxtActive := ::FilterOptionsAsArray( .f. )
aSize( acTxtActive, Len( acTxtActive ) + 4 )
FOR nCont = 1 TO 4
AIns( acTxtActive, 1 )
NEXT
acTxtActive[ 1 ] := "Select Fields"
acTxtActive[ 2 ] := "Show Data"
acTxtActive[ 3 ] := "Change Filter"
acTxtActive[ 4 ...
DO WHILE .t.
acTxtActive := ::FilterOptionsAsArray( .f. )
aSize( acTxtActive, Len( acTxtActive ) + 4 )
FOR nCont = 1 TO 4
AIns( acTxtActive, 1 )
NEXT
acTxtActive[ 1 ] := "Select Fields"
acTxtActive[ 2 ] := "Show Data"
acTxtActive[ 3 ] := "Change Filter"
acTxtActive[ 4 ...
- 17 Ago 2020 16:52
- Fórum: Interface com Clientes
- Tópico: MediaMonkey / Aplicativos
- Respostas: 18
- Exibições: 10968
MediaMonkey / Aplicativos
... 20, 80, "Filter" )
DO WHILE .t.
acTxtActive := ::FilterOptionsAsArray( .f. )
aSize( acTxtActive, Len( acTxtActive ) + 4 )
FOR nCont = 1 TO 4
AIns( acTxtActive, 1 )
NEXT
acTxtActive[ 1 ] := "Select Fields"
acTxtActive[ 2 ] := "Finish Filter"
acTxtActive[ 3 ] := "Change Filter"
acTxtActive ...
DO WHILE .t.
acTxtActive := ::FilterOptionsAsArray( .f. )
aSize( acTxtActive, Len( acTxtActive ) + 4 )
FOR nCont = 1 TO 4
AIns( acTxtActive, 1 )
NEXT
acTxtActive[ 1 ] := "Select Fields"
acTxtActive[ 2 ] := "Finish Filter"
acTxtActive[ 3 ] := "Change Filter"
acTxtActive ...