Insertar registro dentro xBrowse...

Re: Insertar registro dentro xBrowse...

Postby RSalazarU » Sat Mar 05, 2016 3:02 am

Adrian:

ArrayToFields()
FieldsToArray()
Estas dos funciones las tengo definidas de la siguiente manera:
Code: Select all  Expand view  RUN

MEMVAR __aArray

***
*  Definicion de funcion: FieldsToArray() -> __aArray
*  Devuelve el arreglo __aArray con los valores de los campos del actual registro
*
#Define FieldsToArray() AEVAL(__aArray:=ARRAY(FCOUNT()), {|xArray,nIndice| __aArray[nIndice]:=FIELDGET(nIndice) } )


***
*  Definicion de funcion: ArrayToFields(<__aArray>) -> __aArray
*  Coloca los valores del arreglo <__aArray> a los campos del actual registro
*
#Define ArrayToFields(__aArray) AEVAL( __aArray, {|xArray,nIndice| FIELDPUT(nIndice,xArray) } )

 


de la ayuda de xHarbour
Description
DbSkipper() is a helper function used in the :skipBlock code block of the TBrowse object. It provides for standard skip behaviour when browsing data in a work area.


de la ayuda de xHarbour
Description
The DbRUnlock() function releases a record lock for an individual record specified with <xRecno>. If no record identifier is passed to the function, DbRUnlock() bahaves like DbUnlock() since all active record locks are released.
Locking and unlocking one or more records for shared write access is the task of DbRlock() and DbRUnlock(), while RLock() works with the current record and DbUnlock() releases all locks.



en vez de esta funcion NetRecLock(, nRecordDown:=RECNO() )
usa esta otra
de la ayuda de xHarbour
Description
NetRecLock() is a network function used to obtain a lock on the current database record when the database file is open in shared mode for multi-user access. If the current database record cannot be locked due to the record being locked by another process, the function retries the operation for a maximum of <nSeconds> seconds and prompts the user if the operation should be retried or aborted.


Espero te ayude

Saludos.
RSalazarU
 
Posts: 211
Joined: Wed Jul 16, 2008 12:59 pm
Location: Cochabamba-Bolivia

Re: Insertar registro dentro xBrowse...

Postby ACC69 » Thu Apr 07, 2016 5:27 pm

RSalazarU wrote:Adrian:

ArrayToFields()
FieldsToArray()
Estas dos funciones las tengo definidas de la siguiente manera:
Code: Select all  Expand view  RUN

MEMVAR __aArray

***
*  Definicion de funcion: FieldsToArray() -> __aArray
*  Devuelve el arreglo __aArray con los valores de los campos del actual registro
*
#Define FieldsToArray() AEVAL(__aArray:=ARRAY(FCOUNT()), {|xArray,nIndice| __aArray[nIndice]:=FIELDGET(nIndice) } )


***
*  Definicion de funcion: ArrayToFields(<__aArray>) -> __aArray
*  Coloca los valores del arreglo <__aArray> a los campos del actual registro
*
#Define ArrayToFields(__aArray) AEVAL( __aArray, {|xArray,nIndice| FIELDPUT(nIndice,xArray) } )

 


de la ayuda de xHarbour
Description
DbSkipper() is a helper function used in the :skipBlock code block of the TBrowse object. It provides for standard skip behaviour when browsing data in a work area.


de la ayuda de xHarbour
Description
The DbRUnlock() function releases a record lock for an individual record specified with <xRecno>. If no record identifier is passed to the function, DbRUnlock() bahaves like DbUnlock() since all active record locks are released.
Locking and unlocking one or more records for shared write access is the task of DbRlock() and DbRUnlock(), while RLock() works with the current record and DbUnlock() releases all locks.



en vez de esta funcion NetRecLock(, nRecordDown:=RECNO() )
usa esta otra
de la ayuda de xHarbour
Description
NetRecLock() is a network function used to obtain a lock on the current database record when the database file is open in shared mode for multi-user access. If the current database record cannot be locked due to the record being locked by another process, the function retries the operation for a maximum of <nSeconds> seconds and prompts the user if the operation should be retried or aborted.


Espero te ayude

Saludos.



Hola de antemano le mando saludos cordiales Ing. Salazar y de nuevo gracias por el aporte, ahora mi duda, como seria el ejemplo desde donde ejecutar esas funciones algun pequeño ejemplo y adaptarlo a mis necesidades, sino es mucho pedir.

Saludos y gracias Ing. Salazar

Atte: Adrian C. C.
acc69@hotmail.com
ACC69
 
Posts: 632
Joined: Tue Dec 12, 2006 7:34 pm

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 75 guests