topic
stringlengths
1
63
text
stringlengths
1
577k
dbfs on Network : wich performance method?
[b:q784qejs]a question [/b:q784qejs] I have a dbf on the root of application I use it for check : on this file I have the folder of archives and the year of operation sample year => 2007 DBFPATH = > 2007\data then there are info data of school . these data are used on reports and other procedures I must open and ma...
dbfs on Network : wich performance method?
Silvio, I first started programming for networks in the old MS-DOS days, using Clipper. That was over 30 years ago. My clients ( small businesses ) may use anywhere from 2 to 20 computers in each location, and they must all be able to work on the same files, inputting data, all day long. My application has been mee...
dbfs on Network : wich performance method?
Silvio, [quote:2vpx0hwx]I must open and manage this file at the same mode ( txdata) or I must open it on esclusive mode ?[/quote:2vpx0hwx] Generally the only reason you need open files in exclusive mode is to pack and/or reindex them. If every user has to have access to these files, then you need to open them in shar...
dbfs on Network : wich performance method?
Tim, Thanks for your input and the kind words. James
dbfs on Network : wich performance method?
Dear Tim, I too started with the Clipper Autumn 86 and then I purchased the Clipper Summer 87 ( I also have the 4 original floppy dishes 5 1/4) of Nuntucket. On dos it seem too easy I used Netuse made from super lib or Platet lib or another lib I not remember good and it run ok on Network with no problems When mov...
dbfs on Network : wich performance method?
James, return on first test sample the function [b:b8p47gcu]BuildIndexes()[/b:b8p47gcu] make the indexes there is an error because I use an old release of customer not have the field ID but it make the same the index [b:b8p47gcu]Index on "id" tag "custno" to customer[/b:b8p47gcu] as you can see on this picture...
dbfs on Network : wich performance method?
Probably you are using the new CDX with the old DBF. Try to rebuild the CDX. EMG
dbfs on Network : wich performance method?
Silvio, All of my formal training is in. psychology and education. I was asked to write programs in dBase II starting in 1982. I live close to Ashton Tate, and Nantucket so I was very familiar with their software and all the developers who used to come for conferences. I learned on my own by reading books and atten...
dbfs on Network : wich performance method?
[quote="Enrico Maria Giordano":2stzw86t]Probably you are using the new CDX with the old DBF. Try to rebuild the CDX. EMG[/quote:2stzw86t] I erased the customer.cdx before and I use the test of James to recreate the index
dbfs on Network : wich performance method?
Can you send me the DBF and the CDX to reproduce the problem here, please? EMG
dbfs on Network : wich performance method?
[quote="Enrico Maria Giordano":2d29bf1o]Can you send me the DBF and the CDX to reproduce the problem here, please? EMG[/quote:2d29bf1o] SENT
dbfs on Network : wich performance method?
Ok, thank you. As you can check for yourself, the CDX contains a tag with "id" key. So it's just a corrupted CDX. Please delete it, rebuild it and let me know. EMG
dbfs on Network : wich performance method?
I erase the cdx. then I run the test made from James it create the cdx then open emagdbu , open customer database Open the cdx and set the tag id the same
dbfs on Network : wich performance method?
The example from James is not valid for your customer.dbf because it builds the wrong tag: [code=fw:oudfnry2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff...
dbfs on Network : wich performance method?
yes of cource but... why the code ( test.prg) compiled create the cdx if is not valid ? we Know it's is not valid but the exe crete the cdx
dbfs on Network : wich performance method?
I don't know, sorry. EMG
dbfs on Network : wich performance method?
James, I wanted understand why the command : [code=fw:edqxi440]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: ...
dbfs on Network : wich performance method?
I just realized that this syntax is uncorrect: [code=fw:3pyzijex]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #...
dbfs on Network : wich performance method?
Sorry if I sent the wrong customer file. It is disconcerting that the CDX was created without any error message. That would be hard to track down as we have just seen. Silvio, were you able to get the sample to run now? James
dbfs on Network : wich performance method?
Enrico, Thanks for finding that. I did a search of all my source and I did find a couple of other times I used quotes. It would be nice if this generated an error. I must have been going nuts trying to figure out why those indexes weren't working. Enrico, would this be a (x)Harbour issue. If so, would you mind repo...
dbfs on Network : wich performance method?
This is not a bug. Is perfectly legal to build an index on a constant key: [code=fw:1zy2m8kb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> .T. <span style="color: #0000ff;">TO</span> TEST</div>[/code:1zy2m8kb] EMG
dbfs on Network : wich performance method?
Ok. I am curious of what use that would be?
dbftortf
any solution or sample test?
dbftortf
TRcihEdt5 CLASS -> Method ViewDbf Sample: FwExplor
dbftortf
thanks
dbgobottom() en SQL
En Clipper/FW para llegar al final del dbf e incrementar por ejemplo el folio haciamos algo asi. base->( dbgobottom()) nRegistro := base->registro+1 y listo, teniamos el siguiente folio, pero en MySql como se hace? Saludos, Mauricio
dbgobottom() en SQL
Si trabajas con ado podés usar esta función oRecordSet : MoveLast()
dbgobottom() en SQL
Si usas TMysQl Prueba usando cQuery:RecCount() + 1 Espero que te sirva
dbgobottom() en SQL
Modifica el campo para que tenga las propiedades "NOT NULL" "AUTO INC" Y asi cada que insertes un registro en esa tabla, tu ya no te preocupas por ese dato. Saludos
dbgobottom() en SQL
En Eagle1 sería así: nRegistro := oBase:LastRec() + 1 o de una forma análoga como tú lo hacias: oBase:gobottom() nRegistro := oBase:RecNo() + 1 Aunque tal vez lo mejor sea crear un campo auto-incremental, hay que saber el contexto. Para más información sobre Eagle1 mira aquí: <!-- m --><a class="postlink" href="ht...
dbgobottom() en SQL
Gracias a todos, probare las soluciones que comentan, saludos, Mauricio
dbinfo
I have a problem in that in sqlrdd with xharbour builder when i use the function below I get a gpf. This only happens with sql and only if using fivewin. If I compile just using xharbour then it does not gpf. I am using the latest libs that Antonio sent me Thanks Peter
dbinfo
Sorry the function is dbOrderInfo(DBOI_KEYCOUNTRAW)
dbinfo
Peter, There may be a function name conflict. Don't you get an error with the calls stack ? What functions are listed ? Please report it also to xharbour newsgroup. Thanks
dbinfo
Antonio the stack problems were fixed by the new libs that you sent me. I have posted this problem in the xharbour forums and Marcelo has reported that it works fine without fivewin Any other ideas Peter
dbinfo.ch header file
Hello friends, I only discovered this file today. Best regards, Otto [code=fw:2x0g696h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style="color: #00C800;">function</span> main<br...
dbrowse.prg
Mod_harbor is a great project. I think it will give a new life to the harbour and its community. I installed mod_harbur on windows 10(64bit) ( XAMPP 64bit) and started to study the work of dbrowse.prg program. In normal operation everything works correctly . When I press the button NEXT quickly several times the prog...
dbrowse.prg
thank you Yes, we are aware of such errors, still wondering why they happen and how to avoid them... Welcome!
dbrowse.prg
After searching the web the solution to this problem is : Step 1: Open httpd-ssl.conf at here: C:\xampp\apache\conf\extra Step 2: Hash the line, and change to “localhost” #ServerName <!-- w --><a class="postlink" href="http://www.example.com:443">www.example.com:443</a><!-- w --> ServerName localhost Step 3: Save a...
dbrowse.prg
Many thanks!
dbrowse.prg
How link dbedit.prg into dbrowse.prg to edit a record ?
dbrowse.prg
I did not link anything, everything is done by mod_harbur. I'm still in the beginning in studying mod_barbour.
dbrowse.prg
Hello, is this only a problem when we use localhost. I never saw this error but I always work through internet. Best regards Otto
dbseek
I not understood a command on old clipper source I must converte I found OR->(dbSeek(Str(DO->(RecNo()), 3))) the Od dbf id index on a field numeric 3 N (prof) Question : the recno() is allways a number or on old clipper could be also a string ? and then I have while (or->prof == DO->(RecNo())) but == is wr...
dbseek
[quote="Silvio.Falconi":3chlpj71]Question : the recno() is allways a number or on old clipper could be also a string ?[/quote:3chlpj71] No, it's always been a number. EMG
dbseek
but on dos run ok how it is possible ?
dbseek
perhaps I resolve ... on dos I saw the index is another INDEX ON str(PROF,3)+upper(CLASSE)+upper(GG_ORA)+ORESEQ) in this case the expression OR->(dbSeek(Str(DO->(RecNo()), 3))) is right ? also this while (or->prof == DO->(RecNo()))
dbseek
Silvio, [quote:2q75g7e2]in this case the expression OR->(dbSeek(Str(DO->(RecNo()), 3))) is right ?[/quote:2q75g7e2] Don't confuse the valtype of recno() with the use of str(recno()) to do a seek on an index. I admit this is some very strange programming--I have never seen anything like it. Either the original progra...
dbseek
the app use the search on numberof recno in two database it open teacher .dbf and make a loop it take the number od REcno on teacher.dbf first and then try to search this code number on another dbf Orario.dbf where is a field numeric with the number of recno od teacher on 1992 on clipper on dos it runned good . now...
dbseek
The problem with recno() is that these values change when records are deleted and the file packed. I would never use recno. Create an ID field instead. I almost always create an sequential ID field as the number one field. This is the primary key. The only exception is files used for one-to-many relationships. It is a...
dbseek
[quote:1lbnvdo6]The problem with recno() is that these values change when records are deleted and the file packed. I would never use recno. Create an ID field instead. I almost always create an sequential ID field as the number one field. This is the primary key. [/quote:1lbnvdo6] This is a universally accepted good pr...
dbseek
Nages, [quote:1oudk9fd]Now DBFCDX provides *safe* autoinc field by specifying field type as '+' instead of 'N'[/quote:1oudk9fd] Wow, that's news to me. This is a great feature. Is the value inserted numeric or string? I always use a string for easy formatting. Why did you star "safe?" I wrote a database sub-class t...
dbseek
James, [quote="James Bott":28tzl7bd]Why would you need a unique primary key for a one-to-many table?[/quote:28tzl7bd] Essentially, a table needs a unique primary key for record identity purpose. EMG
dbseek
Now I have another problem with Dbseek I have Orario.dbf and some index ( i use cdx) with 992 records USE ORARIO ALIAS OR INDEX ON OR->PROF TAG ORARIO1 TO ORARIO INDEX ON (str(PROF,3)+upper(CLASSE)+upper(GG_ORA)+ORESEQ) TAG ORARIO2 TO ORARIO INDEX ON (upper(OR->CLASSE)+upper(OR->GG_ORA)) TAG ORARIO3 TO ORARIO ...
dbskipper intermitent error
All: Ocassionally I get a the error message indicated. It happens at a msgwait() function in the code. Anything i need to fix. METHOD seems to be looking for a oDbf. I do use a browse without a oDbf.. it calls an array. Works fine for me but once in awhile my users get the error. HArvey [code=fw:3cr0ri5g]<div class="...
dbskipper intermitent error
I can confirm that my clients occaisonally get this error too - i don't use xBrowse in their system, so i will get the error log that they get and post it here later Regards, Pete
dbskipper intermitent error
This is the error i am getting: Application =========== Path and name: Q:\WEIGMOD.EXE (32 bits) Size: 3,497,984 bytes Time from start: 0 hours 37 mins 17 secs Error occurred at: 24/09/2009, 08:27:04 Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Args: Stack Calls =========== ...
dbskipper intermitent error
Peter, Harvey I have seen this error as well .. using Hernan's twbrowse .. best I can tell this error occurs when the last row has been deleted from the listbox and you use an UpStable() call .. Take a look there to see if you can pin it down. Rick Lipkin
dbskipper intermitent error
Harvey, et. al.; If you are setting the codeblocks yourself, please post that code here. If you are you should probably be using setRDD() instead (unless you need some special codeblock actions). I suspect that you have a database function in one of your codeblocks that is not using an alias. This is another good rea...
dbskipper intermitent error
I have this error on some of my clients pcs randomly, i think it has to be adressed. here it a copy of the error.log Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Stack Calls =========== Called from: => DBSKIPPER(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:SETRDD(...
dbskipper intermitent error
Richard: Do youR fix in the method is a permanent fix or are you still waiting for a fix?
dbskipper intermitent error
Harvey still waiting for a fix Richard
dbskipper intermitent error
Richard, I am not sure why you need those cAlias traps. I don't see how you can create a browse without an alias since it is automatically created in the New() method. Do you know under what circumstances it is giving the alias error? Can you provide a small sample showing the error? Regards, James
dbskipper intermitent error
James There is an alias in my browse definition It looks like , somewhere, xbrowse is losing the alias This is why i am using all these traps The code is big, i can show it no problem , i am not sure it will help Richard
dbskipper intermitent error
Richard, >There is an alias in my browse definition >It looks like , somewhere, xbrowse is losing the alias I did a search of cAlias in TDatabase (dated 6/9/09) and I cannot find anywhere where cAlias is assigned nil or "". The only other possibility I can think of is that the database is never opened. Are you openin...
dbskipper intermitent error
James The file is opened in shared mode , here is the code below Thanks for your help, Richard [code=fw:1g1nahht]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">IF</span> APP1 = <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;LDEFAPP := .F.<br />&nbsp; ...
dbskipper intermitent error
Richard, Your code is too complex to make a guess about the problem. But, any one of those functions called by the buttons could be closing the database under some circumstances. Another possibility is that there is a non-alias reference call in TXbrowse and it only becomes a problem when the workarea is changed. On...
dbskipper intermitent error
Richard: Where in your code does it bomb out. Mine seems to be at a msgWait()
dbskipper intermitent error
Harvey, I just did a search of all the FWH source code and the only place msgWait() occurs is in the definition of the msgWait() function. So, if you are getting an error at msgwait() it must be in your code. James
dbskipper intermitent error
James It looks like Richard getting same error at msgwait(). See his first post. Odd that we both get the dbskipper error at the same place. Lets see if he confirms this.
dbskipper intermitent error
James It looks like he may have the error at msgwait() also. Strange.
dbskipper intermitent error
James, I did a research in those functions , none of them closes the database, this database is always open As per changing the workarea , my netopen function makes sure the database is opened in the same area in case of , this is why i tried to trapp if select(calias) = 0 return nil endif Harvey , sorry i do...
dbskipper intermitent error
Richard, >I did a research in those functions , none of them closes the database, this database is always open Did you do a global search of all your code looking for places where databases are closed? It may be in another function called from one of those functions. >As per changing the workarea , my netopen functi...
dbskipper intermitent error
Jmaes: 130 prgs. Big job.
dbskipper intermitent error
Richard, My apologies, I am trying to follow too many threads at once and I got confused. Please ignore my previous message about functions. You are getting a "workarea not in use" error with dbskipper(). And here is your definition of bSkip: oBrwAPP:bSeek := {|c| DbSeek( Upper( c ) ) } Do you see anything wrong w...
dbskipper intermitent error
Harvey, >Jmaes: >130 prgs. Big job. You need Copernic Desktip Search. Its global searches are very fast and you can preview each find on the screen without opening an editor. I can seach my entire hard disk in about 2 seconds. Ironically, it takes slightly longer to search a directory since you have to specify the di...
dbskipper intermitent error
Harvey, After reviewing your error report again, I think you have the same problem as Richard. Take a look at my previous message to him. Richard and Harvey: I'll give you a hint. If you were using database objects you would never have these obscure, intermitant, and hard to find errors. James
dbskipper intermitent error
I understand you comments but 130 prgs is a nightmare.
dbskipper intermitent error
Harvey, >I understand your comments but 130 prgs is a nightmare. Well, I don't disagree. However, I have recently been working on an application that I didn't write that is 104 PRGs, and Copernic has been extremely helpful. It would take me 10-100 times as long without Copernic. I highly recommend it (and I am not ...
dbskipper intermitent error
With due respects to one and all here, I can guarantee that this dbskipper error would NEVER occur, IF obrw:cAlias is explicity assigned and then oBrw;SetRDD is called, unless this alias is closed in some other code of the program. Conditions: 1) oBrw:cAlias ---> SHOULD BE EXPLCITLY ASSIGNED. ( many programmers depend...
dbskipper intermitent error
Richard, Obviously, I need some sleep (I've been up all night). >And here is your definition of bSkip: >oBrwAPP:bSeek := {|c| DbSeek( Upper( c ) ) } I misread the above line to be dbskip not dbseek(). Nevertheless this line still needs fixing. It may, or may not, be causing the dbskip error. I suggest also doing a...
dbskipper intermitent error
James Rao is right , i agree with the 3 points After making further research , it looks like my file is closed somewhere in my app, it does not show on the active databases in the error.log Nevertheless i am puzzled how we get to the error and why all the traps did not work, so i have some questions : in setrdd() f...
dbskipper intermitent error
Not sure but if this code is what you looking for. it will let you know if the databas is open. It seems my app (Very large) closes out files i just reopen rather then spend hours looking for the close that happened. Not great programing but it works. [code=fw:2tk1tb1n]<div class="fw" id="{CB}" style="font-family: ...
dbskipper intermitent error
Richard, Logic would say that the dbgotop() worked because the database was still open when it was called. Logic would also say that the if select( cAlias ) = 0 trap didn't work because the alias was still valid at that point. Possibly, it is a timing issue that a sysrefresh() or dbcommit() would solve. Or maybe, ::c...
dbskipper intermitent error
James yes i did add setrdd() to my code Still puzzled, this is the part where the error occured , in the default part .... the first 2 lines were executed not the third. DEFAULT ::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) },; ::bGoBottom := {|| ( ::cAlias )->( DbGoBottom() ) },; ::bSkip ...
dbskipper intermitent error
James what does setrdd() do??
dbskipper intermitent error
Richard, >Still puzzled, this is the part where the error occured , in the default part .... the first 2 lines were executed not the third. Well, it is all actually only one line as far as the compiler is concerned, so I am wondering what makes you think it is erroring where you say it is? James
dbskipper intermitent error
The error.log shows this line
dbskipper intermitent error
Harvey, SetRRD() does (amoung other things) sets the codeblocks you see in Richards last message. Since you are using a database object you need to call setoDBF(oDBF) instead. James
dbskipper intermitent error
Richard, >The error.log shows this line Please post that section of the error log. James
dbskipper intermitent error
james here it is below Error occurred at: 12/10/2009, 14:07:09 Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Stack Calls =========== Called from: => DBSKIPPER(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:SETRDD(3312) Called from: C:\PRODUCTION\CBATIPROD\xbro...
dbskipper intermitent error
Richard, OK, that is the one you posted earlier. I am not exactly sure what that means. It doesn't make sense that it was in the setRDD() when it crashed because that would mean that the browse was never initialized. I don't see how this could happen because the file was just opened and no other functions were called...
dbskipper intermitent error
Richard, OK, I tried something different. I tried to recreate the error by modifing TXBrowse(). First I tried splitting the default line between the bGotop and bSkip and closed the database between the lines. I got a differnt error. [code=fw:3pw41zdn]<div class="fw" id="{CB}" style="font-family: monospace;">   Error...
dbskipper intermitent error
Let me point out two possibilities: 1. If he is using he should use oBrw:SetoDbf( oDbf ) and definitely not SetRDD() 2. if the browse is created in a window ( other than main window ) and the dbf or odbf is closed after ACTIVATE WINDOW statement this error occurs. Because the dbf is closed even before the browse is p...
dbskipper intermitent error
Rao, Richard is using setRDD() because he is not using a database object. Harvey is using a database object--or at least it appears so from his error message. Perhaps he will confirm or deny this. Your point about MDI is helpful, but in this case Richard says the error has only been occuring occasionally and he has b...
dbskipper intermitent error
Yes odbf. The error ocurrs at the msgwait() line. Makes no sense and only occasionaly happens. Here is the function where the error occurs. Nothing makes sense. No skip jsut bails out. Not often. Message wait at bottom of code produces the error. [code=fw:1svwb5pf]<div class="fw" id="{CB}" style="font-family: monosp...
dbskipper intermitent error
Harvey, First, I don't see any database objects--where is it? Second, I do see lots of database functions being called without aliasing. This is very risky. There are a number of function calls and any one of them may be changing the workarea or closing the database. Using a database object eliminates the aliasing ...
dbskipper intermitent error
Harvey, An idea just came to me. Rather than your msgwait() I would write that same info to an audit file (especially since it is an accounting app). Such an audit file also helps in troubleshooting code problems. You can also have an option in the program to turn auditing on and off. James
dbskipper intermitent error
Harvey, I looked at your error message again and I don't think the error is occuring at the msgwait(). Like Richard's problem, your database is being closed and then the program is erroring out in the browse when it attempts to skip, probably when redisplaying the browse after the msgwait() display is removed. I note...
dbskipper intermitent error
James What i did to secure my browse is to add this oBrwAPP:bGotFocus := {|| IF(SELECT("APPEL") = 0, (OBRWAPP := NIL,APP1:SetFocus(),APP1:PostMsg(WM_CLOSE),APP1 := NIL ) , ) } Richard