Low-Level Functions for DBF - QA Interface

Low-Level Functions for DBF - QA Interface

Postby Otto » Wed Jul 31, 2024 6:44 pm

Hello friends,

Working on my own interface for DBF with the help of ChatGPT has been really fun.
The interface is being developed specifically for access from a web server, so many features
that are standard on the desktop are not necessary here.

The main functions are already working very well. I am now considering whether to use terminology
that aligns more with SQL or dBase.

SQL terminology seems more modern and likely more familiar to users, so I will likely choose that path.

Image

Image

Image


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Low-Level Functions for DBF - QA Interface

Postby Silvio.Falconi » Wed Jul 31, 2024 9:00 pm

don't trust ChatGPT /gemini .... I've tried many artificial intelligences but none of them know the fwh / harbour language thoroughly, they often change commands and functions, I've wasted a lot of time with these artificial intelligences, I still haven't found any that work well
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: Low-Level Functions for DBF - QA Interface

Postby nageswaragunupudi » Thu Aug 01, 2024 12:03 am

ROLLBACK:

Code: Select all  Expand view  RUN
  USE CUSTOMER NEW VIA "DBFCDX"
   GOTO 5
   USE STATES   NEW VIA "DBFCDX"
   GOTO 10
   ? CUSTOMER->CITY, STATES->NAME // -> "Tarzana,Minnisota"
   //
   REPLACE CUSTOMER->CITY WITH UPPER(CUSTOMER->CITY)
   REPLACE STATES->NAME WITH UPPER(STATES->NAME)
   ? CUSTOMER->CITY, STATES->NAME // -> "TARZANA,MINNISOTA"
   //
   DBROLLBACKALL()
   ? CUSTOMER->CITY, STATES->NAME // -> "Tarzana,Minnisota"

   CLOSE DATA
 


HI knows what AI does not know.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Low-Level Functions for DBF - QA Interface

Postby Otto » Thu Aug 01, 2024 7:48 am

Dear Mr. Rao,
I think you learn a lot when you deal directly with the basics.

DBROLLBACKALL() is simply an analogy created by ChatGPT. This command does not actually exist.
You need to ask further questions.
For example. "A suggestion?"
Instead of backing up each record individually, you can employ a temporary backup database or use a shadow file mechanism.

An interesting solution seems to be a batch file for backup and restore.
I once tried it with three large files that are included in a transaction in my program.
It is surprisingly fast—30 to 70 ms for the backup!

In any case, I’m sticking with it.

Best regards,
Otto


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Low-Level Functions for DBF - QA Interface

Postby nageswaragunupudi » Fri Aug 02, 2024 3:51 pm

DBROLLBACKALL() is simply an analogy created by ChatGPT.

This has nothing to do with ChatGPT. I see from your above table, that ChatGPT said there is no equivalent to ROLLBACK in DBF

This is an FWH function.
DBROLLBACK() and DBROLLBACKALL()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Low-Level Functions for DBF - QA Interface

Postby karinha » Fri Aug 02, 2024 4:38 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7828
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Low-Level Functions for DBF - QA Interface

Postby Otto » Fri Aug 02, 2024 5:17 pm

Dear Mr. Rao,

I am sorry. I misunderstood your response.
I will take a look at and study these two functions right away.
Thank you very much.

I am facing so much opposition here that I am already becoming paranoid.

Best regards from Sillian.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Low-Level Functions for DBF - QA Interface

Postby richard-service » Sat Aug 03, 2024 5:40 pm

Otto wrote:Dear Mr. Rao,

I am sorry. I misunderstood your response.
I will take a look at and study these two functions right away.
Thank you very much.

I am facing so much opposition here that I am already becoming paranoid.

Best regards from Sillian.
Best regards,
Otto


Dear Otto,

Take a easy.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Low-Level Functions for DBF - QA Interface

Postby Otto » Mon Aug 05, 2024 7:37 am

Dear Richard,

Thank you.
But now is not the time.
Everything is changing, and if you want to stay in business—I mean, if you plan for your software to continue being used by users—it requires great effort.

New web applications appear daily, trying to take market share.
Without a proper web application, I think it will be hopeless to survive.

That's why I'm stressed. It's a lot of work to transform an application that has been developed over 30 years.
Help would certainly be advantageous here.

But now I see that in our group, many different priorities are being set.
Yet, there is practically little interest in the web.

Still, I have to figure out how best—and most economically—to transform the application.
But I've already come a long way with it. Really far.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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