HMGSCRIPT 0.37

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

HMGSCRIPT 0.37

Post by Roberto Lopez »

Hi All,

I've completed the new dbf files support.

As I've already pointed, since the dbf files support was dropped from PHP standard distributions, I've decided to code from the scartch a new class to do that.

Please, use carefully (specially to write operations) since the code is fully new and must be considered ALPHA.

Operations that set or get the field content handles all data types (original character, numeric, logical and date) as strings.

There is no memo support.

See the sample code for more info.

If you are wondering why is the reason to do this, it is simple: Imagine that you have a Harbour based app running in a LAN and shared by various users, and you want to access the same files with a web client. The only thing that you need is to install an AMP server in the machine where the files are located and make the machine available via Internet, then HMGSCRIPT apps and LAN apps could share the same data.

IMPORTANT: I'VE NOT TESTED THE CLASS IN SUCH ENVIRONMENT YET, PLEASE CONSIDER THAT SOME ADJUSTMENTS COULD BE REQUIRED (SPECIALLY REGARDING SHARING AND LOCKING). THERE IS NO SECURITY IMPLEMENTED (YOU MUST DO IT FOR ANY REAL WORLD USE). USE FOR TEST ONLY AND REPORT ANY PROBLEM FOUND ON THIS THREAD. IDEAS AND CODE TO ENHANCE THE CLASS ARE WELCOME.
NEW ON RELEASE 0.37

- new: getRecno( nRow ) Browse method.

- new: FieldPut ( cFile , nRecno , nField , cValue ) function. Changes a record in a dbf file.

- new: Delete ( cFile , nRecno ) function. Mark a record as deleted in a dbf file.

- new: Recall ( cFile , nRecno ) function. Removes a delete mark from a record of a dbf file.

- new: FieldGet ( cFile , nRecno , nField ) function. Gets a field from a record of a dbf file.

- new: Append ( cFile ) function. Appends an empty record to a dbf file and returns its recno.

Roberto Lopez (http://www.hmgforum.com)
http://sourceforge.net/projects/hmgscript/

Enjoy!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMGSCRIPT 0.37

Post by esgici »

GREAT :!:

Thanks Roberto :D

Best regards
Viva INTERNATIONAL HMG :D
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMGSCRIPT 0.37

Post by bpd2000 »

Excellant Roberto Lopez
BPD
Convert Dream into Reality through HMG
User avatar
Rathinagiri
Posts: 5477
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMGSCRIPT 0.37

Post by Rathinagiri »

Fantastic work Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

Re: HMGSCRIPT 0.37

Post by claudiotedesco »

Hola Roberto

Este fin de semana estuve probando el HMGSCRIPT y te felicito
El unico inconveniente que tengo es que me da error cuando quiero usar la BASE

xBase Browse Test (Click Headers To Sort)
Not Found

The requested URL /php/browse.php was not found on this server.


Yo instale VERTRIGOSERV correctamente pero no se si la carpeta hay que descomprimirla en el directorio WWW u otro lugar
Gracias por la ayuda
Saludos
Claudio
Attachments
error.jpg
error.jpg (58.82 KiB) Viewed 171996 times
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: HMGSCRIPT 0.37

Post by Roberto Lopez »

claudiotedesco wrote:
Yo instale VERTRIGOSERV correctamente pero no se si la carpeta hay que descomprimirla en el directorio WWW u otro lugar
Gracias por la ayuda
Saludos
Claudio
Debes copiar la carpeta www de HMGSCRIPT a la carpeta www de vertrigo. Debería funcionar sin problemas.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

Re: HMGSCRIPT 0.37

Post by claudiotedesco »

Funciono correctamente
Gracias

Claudio
User avatar
RIT
Posts: 13
Joined: Mon Oct 04, 2010 1:32 am
Location: Osorno, Chile
Contact:

Re: HMGSCRIPT 0.37

Post by RIT »

That most interesting project, Congratulations and thanks.

Grettings,
RIT.
nelstu
Posts: 60
Joined: Mon Jul 30, 2012 10:41 pm

Re: HMGSCRIPT 0.37

Post by nelstu »

He estado trajando un poco con hmgscript y funciona perfecto!!!!!!!!

Base de datos mysql

Tengo un par de dudas

1.- como puedo agregar datos de una tabla a un combobox


2.-es posible controlar el largo del textbox

slds y gracias

Nelson Stuardo
nelstu
Posts: 60
Joined: Mon Jul 30, 2012 10:41 pm

Re: HMGSCRIPT 0.37

Post by nelstu »

el largo del textbox ya lo solucione, necesito ver como cargar el combobox

slds

NS
Post Reply