Search found 34 matches: ains

Return to advanced search

Re: Insert an record on array

Dear Silvio, Arguments aArray The array name into which the value xValue will be inserted. nPos Subscript position in aArray. Default: 1st position xValue Value to be inserted lAutoSize Boolean flag to increase or not the size of aArray. Default value: .F. https://harbour.github.io/doc/...
by Silvio.Falconi
Mon Jan 15, 2024 9:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Insert an record on array
Replies: 4
Views: 823

Re: Insert an record on array

Dear Silvio, Arguments aArray The array name into which the value xValue will be inserted. nPos Subscript position in aArray. Default: 1st position xValue Value to be inserted lAutoSize Boolean flag to increase or not the size of aArray. Default value: .F. https://harbour.github.io/doc/h...
by Antonio Linares
Sun Jan 14, 2024 6:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Insert an record on array
Replies: 4
Views: 823

Re: chatGPT writes and executes Harbour code !!!

... came to a close, Mary used the CLOSE keyword to shut down her computer and the DBCLOSEALL keyword to close the database table. She then used the AINS keyword to insert the memories of the wonderful evening into her heart and headed off to bed with a warm and contented feeling.
by Jimmy
Mon Dec 26, 2022 8:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chatGPT writes and executes Harbour code !!!
Replies: 35
Views: 2783

mover un elemento de un array

hola.
Se puede, sin usar ains y luego copiar y luego adel, mover un elemento de un array a otra posicion del mismo arrray?

a[1]:= "a"
a[2]:= "b"
a[3]:= "c"

quedando como resultado final

a[1]:= "a"
a[2]:= "c"
a[3]:= "b"


gracias.
by goosfancito
Mon Feb 15, 2021 4:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: mover un elemento de un array
Replies: 3
Views: 425

Re: Funciones de Arrays()

Inserting:

AINS( aArray, nAt, uValue, .t. )

Merging two arrays:

aFirst := AMERGE( aFirst, aSecond )
by nageswaragunupudi
Thu Oct 04, 2018 4:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones de Arrays()
Replies: 4
Views: 735

Re: Funciones de Arrays()

Hola. También podés intentar asi:
AINS(aTarget, nPosition, aBlankEle, .t.)
by FranciscoA
Thu Oct 04, 2018 4:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones de Arrays()
Replies: 4
Views: 735

Re: Sumar o combinar matrices/arreglos

Adolfo: También desde Clipper existe la función AINS(), te muestro que tengo a la mano: tabla := {"FRANCISCO","FELIPE","MANUELA"}AINS(tabla,2)tabla[2] := "ANTONIO"El resultado sería:tabla[1] ...
by Armando
Thu May 31, 2018 4:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sumar o combinar matrices/arreglos
Replies: 7
Views: 1525

Re: funciones de FWH y Harbour en un archivo .txt

... AfterAtNum(<cSearch>,<cString>,[<nCount>],[<nSkipChars>])->cResult AIns(<aTarget>,<nPosition>,[<xValue>],[<lGrow>])->aTarget ALenAlloc(aArray>)->nElements Alert(<xMessage>,[<aOptions>],[<cColor>],[<nDelay>])->nChoice ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5690

Re: funciones de FWH y Harbour en un archivo .txt

... ADSIsRecordInAOF ADSKeyCount ADSKeyNo ADSLocking ADSRefreshAOF ADSRightsCheck ADSSetAOF ADSStmtSetTableReadOnly AEval AFields AFill AfterAtNum AIns ALenAlloc Alert Alias AllTrim AltD AmPm AnsiToHtml Array Asc AScan ASCIISum AscPos ASin ASize ASizeAlloc ASort At AtAdjust ATail ATan ATn2 AtNum ...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5690

insertar una "columna" en un array multidimensional?

Hola.

Tengo un array de 3 columnas por x filas, necesito insertar una columna de x filas.
de esto:
1 4 5 6
8 1 5 9


a Esto:
1 x 4 5 6
9 x 7 8 9


no se utilizar el ains en los array multidimensional...
gracias.
by goosfancito
Fri Dec 30, 2016 11:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: insertar una "columna" en un array multidimensional?
Replies: 2
Views: 1024

Re: Ejemplo sencillo de factura

... realizo alguna consulta o modificacion de polizas y asi como grabar datos desde arrays,ya que segun es mas facil insertar registros con la funcion ains() pero nunca lo realice y me quede con ese detalle de solucionarlo :cry: :evil: . Espero le sea de gran ayuda . // MENU PRINCIPAL#include "FiveWin.ch"STATIC ...
by ACC69
Fri Apr 22, 2016 4:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo sencillo de factura
Replies: 46
Views: 17786

Re: Insertar registro dentro xBrowse...

... NetRecLock(, nRecordDown:=RECNO() ) Y tampoco he realizado alguna rutina por arrays que todos comentan que es mas facil insertar usando AINS() , que hacerlo directamente en dbf,cuando lo que quiero hacer es insertar un registro a mitad por ejemplo de una factura o captura de cuentas ...
by ACC69
Fri Mar 04, 2016 5:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar registro dentro xBrowse...
Replies: 16
Views: 6157

Re: Insertar registro dentro xBrowse...

... NetRecLock(, nRecordDown:=RECNO() ) Y tampoco he realizado alguna rutina por arrays que todos comentan que es mas facil insertar usando AINS() , que hacerlo directamente en dbf,cuando lo que quiero hacer es insertar un registro a mitad por ejemplo de una factura o captura de cuentas ...
by ACC69
Thu Mar 03, 2016 9:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar registro dentro xBrowse...
Replies: 16
Views: 6157

Re: Insertar registro dentro xBrowse...

Si estas usando un array para contener tus registros...puedes usar AINS(), aca referencia del libro de clipper, espero te ayude, saludos... :shock: AINS() Inserta un elemento NIL en una matriz ------------------------------------------------------------------------------ ...
by joseluisysturiz
Thu Jan 07, 2016 12:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar registro dentro xBrowse...
Replies: 16
Views: 6157

Re: move a record from xbrowse

... This should solve it: :bDropOver := { |u,r,c,f| oBrw:LButtonDown( r,c ), ; oBrw:LButtonUp( r, c ), ; // r, c were missing aDel( aData, u[ 1 ] ), ; AIns( aData, oBrw:nArrayAt, u[ 2 ] ), ; oBrw:Refresh() }
by Antonio Linares
Tue Nov 17, 2015 11:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: move a record from xbrowse
Replies: 31
Views: 7360
Next

Return to advanced search