topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
database object | Tim,
here is a test which shows the wrong behavior.
Click on the button without inserting something into the get field and method modified returns true.
Best regards,
Otto
[code=fw:3ii58zb1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> testTdata<span style="col... |
database object | Otto,
As James explained it to me, blank simply empties the buffers. You didn't add a record ( obj:append( ) ) so you wouldn't have a record number.
tRecord may resolve your problems because it will track a record number and always make sure you write to it.
Tim |
database object | :append()
Hello Tim,
thank you for your explanation.
As in the moment of opening a dialog to insert a new record you never know if a user finishes entering you can’t append a record.
If he breaks off you have to delete the record in the database.
To delete records in a database concerning data which is responsible fo... |
database object | tRecord will do that for you. Create a new tRecord object, and issue blank( ). That gives you clear data. Because there is no record number, when you go to save it, it will do the append( ) at that time.
Tim |
database object | Hello Tim,
thank you. I will look into the TRecord object.
Best regards,
Otto |
database y browse | Hola estoy intrigado con el uso de la clase. Les explico, utilizó mucho esta clase y ningún problema. Uno de los usos que le doy es el de cargar los browses con esta. Bueno hasta aquí no hay problema. Pero hoy quise hacer lo mismo pero con la diferencia que la clase la database la hago en una función principal y el bro... |
database y browse | Hola amigo...
Prueba poner un GoTop en la apertura de la DBF
[code=fw:7xvmvbdb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> !pasaje<span style="color: #000000;">(</span><span style="color: #ff0000;">"banprove"</span><span style="color: #000000;">)</spa... |
database y browse | Sí así lo hago en otra parte ya que hago un filtro de la base para que me muestre sólo los registros del proveedor consultado. Me parece que el problema está en declarar al browse como local, voy a probar en declararlo como estático
Luis |
database y browse | Bueno acabo de probar y tampoco me funciona... Lo voy a dejar así como está es decir abrir cada vez que consulto un proveedor abriendo la base de datos y cerrandola cuando salgo de la rutina. No es lo correcto pero funciona.
Cuando empezé a programar alguien dijo [b:1is466in]si funciona no lo toques[/b:1is466in]. No e... |
database y browse | he tenido ese problema antes y lo resolvi pasando el objeto database al programa que hace el browse |
database y browse | Sí así lo hice yo también, lo que buscaba era saber si alguien tenía una explicación para esto
Un abrazo
Luis |
database y browse | Una pregunta... Estas seguro que cuando declaras DATABASE oBanPro está seleccionada la dbf que quieres? Que pasa si ponemos un ? Alias() justo antes del DATABASE oBanPro?
Un saludo |
database y browse | Carlos así la declaro
if !pasaje("banprove");return nil;endif
DATABASE oBanpro
oBanpro:setorder(1)
oBanpro:beof:={||nil}
Lo extraño que si lo declaro en el primer prg y luego lo paso como variable de la segunda función, no muestra nadaen el browse, (probé llamando un msg y sí me muestra un registro en la seg... |
database y browse | Prueba con :
REDEFINE BTNBMP oNbut[1] id 102 of oDlg resource "btnagregar","btnagrega1" ACTION eval({|| provee( oLbx, .T.,oMae,oBanpro )}) NOBORDER |
database y browse | Angel tampoco funciona. Hice un montón de pruebas y no sigue sin funcionar pasando como variable la base. Si la base la abro en el misma función que declaro el browse funciona.
Gracias
Luis |
database y ordscope | Como se utiliza este método que está tambien en la clase database
METHOD ordScope( nScopeType, uValue )
Luis |
database y ordscope | [code=fw:1a67mpih]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*constantes para scope en tablas*/</span><br /><span style="color: #B900B9;">//#define TOPSCOPE 1</span><br /><span style="color: #B900B9;">//#define BOTTOMSCOPE &nb... |
database y ordscope | Gracias Kharina pero de hecho los utilizó pero mi consulta es como hacerlo con la clase database
Luis |
database y ordscope | Olá, com database se usa desta maneira.
<oObjetoDatabase>:OrdScope( 0, <seu_escopo_inicial> )
<oObjetoDatabase>:OrdScope( 1, <seu_escopo_final> )
por exemplo.
use cliente new
database oCli
oCli:ordScope( 0, cCodCli )
oCli:ordScope( 1, cCodCli )
oCli:Gotop()
BROWSE() |
database y ordscope | Ó
[code=fw:1tzp9fdp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">IF</span> NetUse<span style="color: #000000;">(</span> <span style="color: #ff0000;">"COTACAO"</span>, .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">/... |
database y ordscope | Gracias Kharina, muy clara la explicación. Voy a implementarlo. Ya que muchas veces lo que hacía era abrir la base de datos hacer los ordescope y luego usar la clase database
[code=fw:15kijr26]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">if</span> !pasaje<span style="color: ... |
database y setfilter | Utilizando el código de database original para el caso de setfilter:
[code=fw:17iy11k0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> SetFilter<span style="color: #000000;">(</span> cFilter <span style="color: #000000;">)</span> <span style="color: #00C800... |
database y setfilter | Perdón quise hacer un preview... siguiendo...
Cuando envío el filtro por ejemplo (oCtae:calias)->npro = 0
el mensaje que me envía es .f. ... ¿a que se debe? y da este error
[code=fw:3dwvr1hb]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br /> Path and <span style="color: #0... |
database y setfilter | [code=fw:3grhtaav]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #000000;">(</span>oCtae:<span style="color: #000000;">calias</span><span style="color: #000000;">)</span>->npro = <span style="color: #000000;">0</span><br /> ...<br /> oCtae:<span style="colo... |
database y setfilter | Gracias Carlos lo voy a probar y te comento |
database y setfilter | Carlos si envías los datos de esta forma
oPinterno:setfilter("vendedor = oApp:nlogin") no funciona
de esta forma tampoco
oPinterno:setfilter("vendedor = " + oApp:nlogin )
Lo voy a dejar con la modificación que hice que de todas forma no modifica el comportamiento de la clase para otras bases de datos
Luis |
database y setfilter | Hola vuelvo con esto ya que no le encontré la solución salvo con al modificación antes comentada.
Alguien por casualidad usa el set filter en la clase database y si la usa me podría indicar como la utiliza, ya que ahora estoy tratando de resolverla sin usar la modificación que comente pero sigo tropezando con la mism... |
database y setfilter | En la clase database original es
[code=fw:36ziwzu1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> SetFilter<span style="color: #000000;">(</span> cFilter <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDataBas... |
database y setfilter | Como te dice Carlos le tienes que mandar una cadena... por lo que esto:
oPinterno:setfilter("vendedor = " + oApp:nlogin )
deberías a cambiarlo a:
oPinterno:setfilter("vendedor = " + str( oApp:nlogin ) )
Entiendo que usas la notación húngara correctamente y por tanto oApp:nlogin es de tipo numérico...
Por otro lado e... |
database y setfilter | Manuel seguí probando y encontré el problema parcialmente, ya que en algunos casos funcionaba y en otros no, por eso contesté que no había visto bien las soluciones que me había recomendado en su momento Carlos Vargas, que pasó? Que empezé probando con esta parte del programa que filtro por vendedores ( y parece que ... |
database y setfilter | A ver Luis, el problema no es que sea o no publica o privada sino que en el sitio donde se compile esa variable sea o no visible... y es logico que no lo es <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
Para que funcione deberías compilar el valor de la variable local y no el... |
database y setfilter | Luis yo lo cambiaría a:
de esto
Local nValor
nValor := aMae[2] //Nro de proveedor
oCom:setfilter( "npro = nvalor" )
a esto
oCom:setfilter( "npro == " + str( aMae[2] ) ) // No hace falta usar variables <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
database y setfilter | Gracias Manuel ahora lo entendí y lo apliqué, pude dejar de usar la database modificada.
Luis
PD: sin comentarios de mi rapidez mental... |
database y setfilter | <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
datas en clases.. | Hola foro,
Pues tengo una pequeña duda a ver si alguien me puede explicar..
tengo una clase con sus data y sus method.
dentro de algunos method las datas no me funcionan sino hasta que les antepongo el self.. asi esta mi ejemplo:
[code=fw:bgjlwwjs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /... |
datas en clases.. | Hola
todo empieza desde el comando xbase REDEFINE BTNBMP... ACTION, que traduce la clausula ACTION a un codeblock que sera evaluado en la clase TBTNBMP, ese codeblock recibe como primer parametro Self, pero no es el Self de tu clase sino del la Clase TBTNBMP
usando [b:18ay4xxw]oSelf:=SELF[/b:18ay4xxw] forzamos a usar... |
datas en clases.. | Bien al menos hoy aprendi algo nuevo...
Gracias Daniel
Saludos
Paco |
datas en clases.. | Yo lo uso desde FW + clipper... pero nunca supe el porqué! <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
gracias Daniel! |
datatables DBF server-side processing | [url:2dtibru7]https://mybergland.com/fwforum/datatables.mp4[/url:2dtibru7]
Hello,
Do any of you work with DBF files and server-side processing?
I made some speed tests. In this example, we show Data tables in action.
Data tables is connected to a DBF file.
We have connected our server to the internet ... |
datatype | when I go to create the temporary order in memory (see this topic [url:qn1pplg7]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=41377&start=0&sid=125ed95a697356ee0ca6845b50441ee5[/url:qn1pplg7])
I load the types of the database columns I am going to save the data type in an array
[b:qn1pplg7] aT... |
datatype | METHOD FieldType( n, c ) INLINE If( c == nil, ::aStruct[ n ][ 2 ], ::aStruct[ n ][ 2 ] := c ) |
date e ora in rtf | esiste una funzione che mi restituisca l'elenco dei formati della data e della ora tipo come si seleziona in word ? |
date e ora in rtf | putroppo non ho trovato su msdn l'lelenco delle funzioni della rich edit ( RTF CONTROL)
mi potete aiutare a trovare questo manuale per favore
silvio |
date e ora in rtf | [quote="Silvio":1r3a0z9h]putroppo non ho trovato su msdn l'lelenco delle funzioni della rich edit ( RTF CONTROL)
mi potete aiutare a trovare questo manuale per favore
silvio[/quote:1r3a0z9h]
[url:1r3a0z9h]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editc... |
date e ora in rtf | grazie |
date e ora in rtf | scusa come ho gia detto a Marco che la funzione dovrebbe se ricordo bene , cioè avere il suffisso RE come REprint ed essere REGetDateTime() o giù di li ma non riesco a trovarla dove puo' essere ...? |
date e ora in rtf | No, quella è una funzione che ha scritto Antonio e non la trovi certo documentata sulla MSDN.
EMG |
date e ora in rtf | ok e dove la trovo ? |
date e ora in rtf | Devi chiedere ad Antonio. I sorgenti non ci sono. E non è (ancora) documentata.
EMG |
date e ora in rtf | Non ci sono i sorgenti ?
E' un'immane cavolata ...?
.... e se volessi ricompilare le librerie di fw per una nuova versione di xharbour ( pcode cambiato) come farei ?
Vedi che cò non è possibile c'è qualcosa ke ci sfugge.... |
date e ora in rtf | Sono sicuramente sorgenti scritti in C che quindi non necessitano di ricompilazione in quei casi.
EMG |
date e ora in rtf | ok sorgenti in c sicuramente
e quindi non si puo' fare niente per adesso
io aveo un ideuzza ma non so dove andare a prendere al cune funzioncine
cmq ho visot che antonio piano piano sta rimettendo nella classe rtf alcune di quelle funziocine che sono nell'altra classde quell acreata con ozs tra cui page setup...
e... |
date e ora in rtf | Non lo so, mi dispiace.
EMG |
date format | By converting an excel file to a dbase file the date field is switching to the american style (MM/DD/YYYY)
How to prevent or rectify this? |
date format | How are you converting Excel to dbf?
If you read excel data as a date value, you should not have any problem.
You may also consider using FWH built-in function FW_ExcelToDBF() |
date picker como MSGDATE() | Hola:
He visto como funciona el control date picker, que saca un calendario en 32 bits y requiere usar un campo ad hoc. ¿Hay algún arreglo que permita usar dicho calendario como en la función msgdate()?.
El ejemplo fwh\samples\msgdate.prg no funciona correctamente cuando se pulsa varias veces el +, se cambia de mes y... |
date() format like ""dd/mm/yyyy""? (Solved) | Dear Antonio, James, Uwe and friends.
I have a simple doubt about date functions
With twice function bellow, I get the date in format "dd/mm/yy"
[code:36mgfp52]? fileDate( "C:\apps\myApp.exe" )
? date()[/code:36mgfp52]
and my configurations is here:
SET DATE BRITISH
SET CENTURY ON
SET( _SET_EPOCH, 1950 )
... |
date() format like ""dd/mm/yyyy""? (Solved) | Hello JC,
Just add the line for the format, You need :
SET DATE FORMAT TO "DD/MM/YYYY"
( SET DATE FORMAT TO "DD.MM.YYYY" )
ddate := CTOD( "29/12/2008" ) // Date()
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
date() format like ""dd/mm/yyyy""? (Solved) | [code:32de5bmt]
Set( _SET_DATEFORMAT, "dd/mm/yyyy")
[/code:32de5bmt] |
date() format like ""dd/mm/yyyy""? (Solved) | Uwe and Biel,
Thank you! Worked very well and much more simple! |
date() format like ""dd/mm/yyyy""? (Solved) | [quote="JC":e8lh4i9s]Dear Antonio, James, Uwe and friends.
I have a simple doubt about date functions
With twice function bellow, I get the date in format "dd/mm/yy"
[code:e8lh4i9s]? fileDate( "C:\apps\myApp.exe" )
? date()[/code:e8lh4i9s]
and my configurations is here:
SET DATE BRITISH
SET CENTURY ON
SET(... |
date/hour Server | How does he do to verify the date and current hour of the server of files to be same in all stations?
Clemerson |
date/time limit (trial) | HI, someone has an sample of time/date limit of use, like trial version? thanks |
date/time limit (trial) | Something like this?
[code:j9mstoty]IF DATE() > CTOD( "XX/YY/ZZZZ" )
// Expired
RETURN NIL
ENDIF[/code:j9mstoty]
EMG |
date/time limit (trial) | Enrico, yes, but after expired, write in windows registry or create an file , to not execute again. |
date/time limit (trial) | What is the problem?
EMG |
date/time limit (trial) | Enrico, after expired date, i need save it , using windows registry or an file... i need an sample, you have? |
date/time limit (trial) | You can use MEMOWRIT() or FCREATE() to create files. I don't recommend to write in the registry.
EMG |
datepick into a ribbon folder | Any solution ? |
datepick valid | I have a dialog with two datepick
From and TO
I know the number of room and the type
I want see if I have a booking order on a dbf for this room and for this period
on the file.dbf I have these fields
CAMERA 6 N
dal 8 Date
Al 8 Date
tipoattrez 1 C
How I can make to ... |
datepick valid | Silvio,
from Your example :
[code=fw:2lherz9j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"dtpicker.ch"</span><br />... |
datepick valid | I cannot add a new field on this archive
I explain U...
I have two date fields cotiza->dal ( initial date) and cotiza->al ( end date)
the index must be to cotiza-camera ordsetfocus(3) beacuse I must set filter to cotiza->camera==n and cotiza->tipoattrez=ctipoattrez
when on the dialog I insert the initial date and... |
datepick valid | Silvio,
I tested with some small changes in Your example and it returns for 2 given dates TRUE or FALSE.
Tested Record from Your Database :
[color=#FF0000:sl7no7f4]Camera = 3
Tipo = O
Start = 07.07.2009
End = 21.07.2009[/color:sl7no7f4]
[code=fw:sl7no7f4]<div class="fw" id="{CB}" style="font-family: monospace;"><br ... |
datepick valid | before to open the dialog I see the msginfo.....
and then ....
WHAT IS IT ?
[img:m5de43vf]http://img200.imageshack.us/img200/7295/whatisit.jpg[/img:m5de43vf] |
datepick valid | Silvio,
The message < date not found > is just a control for You, that .T. and .F. works.
Any datapicker-selection will show .F. until You chose the correct values.
You only need to use < found OK >, the message < Not found > You don't need and must set to NIL.
With test-values Start : [color=#FF0000:15qupkhf]07.07.2... |
dates of a mounth | Hi Silvio
You don't say how you want returned such a complex result like that, it at least has 24 dates. May be
[code=fw:1cku0rpg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> GimmyTheDates<span style="color: #000000;">(</span> nYear <span style... |
dates of a mounth | We need not have our own function EOM(d)
There is already a function EOM(d) in (x)Harbour. |
dates of a mounth | Dear friends,
I need a function return me the init date and the end date of each mounth , I passed only the Year
How I can do it ?
Wich function i must use to have them ?
thanks |
dates of a mounth | [size=200:1vw84ju6]thanks
it is that I search[/size:1vw84ju6] |
dates of a mounth | thanks Rao |
datetime de access | como se obtiene una variable del tipo datetime de una tabla de access, usando ADO?
salu2
paco |
datetime de access | te la devuelve como cadena de caracteres, aunque xHarbour ya posee el tipo de dato DateTime.
Tomado del manual de xHarbour:
[code:1u8rko1d]PROCEDURE Main
LOCAL d1, d2, nDiff
SET CENTURY ON
SET TIME FORMAT TO "hh:mm:ss.ccc"
? DateTime() // result:... |
datetime de access | Gracias rene, como siempre tan oportuno (savelife), pues siempre al obtener el dato de la .mdb unicamente me regresaba el dato fecha, veo lo que comentas.
gracias
paco |
datetime de access | Gracias rene, esta funcion esta en xharbour, pero lo que necesito es obtener el dato fecha y hora que esta almacenado en una .mdb, pero desde fwh, hice la conexion con ADO y al traer el VALUE del campo unicamente me trae la fecha, y necesito ambos fecha y hora, como veo la explicacion que haces es para yo hacerlo direc... |
datetime de access | Paco efectivamente aunque en el acces se mira el campo con fecha y hora
el recorset de ADO solo te devuelve la fecha ignorando el resto,
05/09/2007 07:33:20
msginfo( oRS:Fields("FECHAMOV"):Value )
solo muestra un pezado del estring 05/09/2007
algun guro debe de saber el porque .
saludos.. |
datetime from server | Hello friends,
With mod harbour we can use much of our "CLIPPER/HARBOUR" knowledge for the web programming.
Best regards,
Otto
[img:ul903nhd]https://mybergland.com/fwforum/date.jpg[/img:ul903nhd] |
dati da excel di openoffice | CIao,
avevo recuperato in giro una programmino con il quale riuscivo a recuperare i dati da un foglio excel di Microsoft)
Ora pero' volevo recuperare i dati da un foglio excel di OpenOffice. Ma lo stesso programma non funziona.
Avete qualcosa su cui "spataccare" ?
Grazie
Romeo/Zingoni |
dati da excel di openoffice | Qualche linea di codice:
[code=fw:1j02p7et]<div class="fw" id="{CB}" style="font-family: monospace;">oSrvMan = CREATEOBJECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"com.sun.star.ServiceManager"</span> <span style="color: #000000;">)</span><br />oDesktop = oSrvMan:<span style="... |
dati da excel di openoffice | Grazie,
Ho provato ma canno da qualche parte.
Il mio file di excel di openoffice, che si chiama pippo.ods
Intanto dove fa messo nella tua procedura ?
Xche' io devo prendere dei dati da un foglio excel di openoffice GIA' ESISTENTE.
Romeo/Zingoni |
dati da excel di openoffice | Purtroppo non ho altri esempi. Guarda anche nel sorgente xbrowse.prg oppure cerca su Internet.
EMG |
dati da excel di openoffice | Salve,
partendo da un esempietto di EMG e manipolandolo, qualcosa ho combinato.
...
... minimizzando il problema:
oSrvMan = CREATEOBJECT( "com.sun.star.ServiceManager" )
oDesktop = oSrvMan:CreateInstance( "com.sun.star.frame.Desktop" )
aProp:={}
aadd(aProp,GetPropertyValue(oSrvMan,"Hidden",.t.))
oDoc = oDesktop:Lo... |
davinci.ch | Hi
Where can I get davinci.ch
Regards
ACWoo
Using harbour1304+bcc582 |
davinci.ch | Look
<!-- m --><a class="postlink" href="https://bitbucket.org/navarro_cristobal/easypreview_n1/downloads">https://bitbucket.org/navarro_cristobal ... /downloads</a><!-- m --> |
davinci.ch | Hi
Thanks
ACWoo
Using harbour1304+bcc582 |
day of year | Hi,
i am looking about a function which returns the numeric value of the day in the year
ex function (01/01/06) return 1
function (31/12/06) reutrn 365
May be this function exist but i don't find it
Any idea? Thanks |
day of year | [quote="patili":22qsh4ni]Hi,
i am looking about a function which returns the numeric value of the day in the year
ex function (01/01/06) return 1
function (31/12/06) reutrn 365
May be this function exist but i don't find it
Any idea? Thanks[/quote:22qsh4ni]
If use xHarbour
[code:22qsh4ni]DOY ([<dDate>&... |
day of year | No i'm using Fivewin and clipper |
day of year | Patili,
[code:21advgw3]
function Main()
SET DATE FRENCH
MsgInfo( Doy( CToD( "01/01/06" ) ) )
MsgInfo( Doy( CToD( "31/12/06" ) ) )
return nil
function DOY( dDate )
local nMonth := Month( dDate )
local nDay := 0
... |
day of year | And NOW it exist
Thank you Antonio |
day of year | You are welcome <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.