Search found 17 matches: adrrdd

Searched query: adrrdd

by Jeff Barnes
Wed May 13, 2009 6:36 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Hi JARO,

It still crashed at:

Patients->DBAPPEND()
by JARO
Wed May 13, 2009 6:30 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

SORRY

TO ADD RECORDS
function Main()
USE Fusion VIA "ADORDD" TABLE "patients" MYSQL FROM "127.0.0.1" USER "fusion" PASSWORD "fusion" ALIAS "Patients"
go bottom
ncode:=Patients->code +1//primary key, IF YOU HAVE ANY PROBLEM USE DATABASE SORT BY PRIMARY KEY
Patients->DBAPPEND())
Patients ...
by JARO
Wed May 13, 2009 6:20 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Jeff (sorry my english is very bad)
So add record
First, if you database contain a primary key. you have update this field
Your example
suppose that primary key name is "CODE"

#include "FiveWin.ch"
#include "ADORDD.ch"
REQUEST ADORDD

Function Main()
USE Fusion VIA "ADORDD" TABLE "patients" MYSQL ...
by Jeff Barnes
Wed May 13, 2009 5:04 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

I tried that as well and also got that error.
by dutch
Wed May 13, 2009 4:59 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Thanks Jeff,

I found the function ADO_APPEND() in ADORDD.PRG but I don't understand why it cannot use. It shows the error "Unresolved external '_HB_FUN_ADO_APPEND'".

Regards,
Dutch
by Jeff Barnes
Wed May 13, 2009 12:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Hi Dutch,

This is what I did:

#include "FiveWin.ch"#include "ADORDD.ch" REQUEST ADORDDFunction Main() USE Fusion VIA "ADORDD" TABLE "patients" MYSQL FROM "127.0.0.1" USER "fusion" PASSWORD "fusion" ALIAS "Patients" go top Patients->Last := "xxxxxxxxxxx" BROWSE() USEreturn nil

If ...
by dutch
Wed May 13, 2009 8:33 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Dear Jeff,

How do you edit it?

Thanks,
Dutch
by Jeff Barnes
Wed May 13, 2009 12:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Almost there...

I am now able to edit the data (I removed both odbc drivers then installed just the 5.1 driver to try an clean things up a bit)

I still get errors when I try to append a record.

Anyone know how to get around this?
by Jeff Barnes
Tue May 12, 2009 11:54 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

I tried installing the 5.1 version of the MySql ODBC driver and made the change to Adordd.prg --- still errors every time I try to add or modify :cry:
by nageswaragunupudi
Tue May 12, 2009 9:59 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

I do not use ADORDD normally. I use ADO directly.
But for this post I tested with ADORDD of xharbour.
I made only one small change in the adordd.prg. Changed the driver from 3.51 to 5.1.
ADORDD is working fine for me. I am able to add rows and modify rows.
Unless opened in exclusive mode, we should ...
by Jeff Barnes
Tue May 12, 2009 6:22 pm
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Thanks Armando and Anserkk for you idea of using ADO directly, however, currently I would like to stick with the xbase style control over the database.
I really don't have the time to learn the ADO format :(

Does anyone know how to allow access to adding / modifying the data via an ADORDD connection?
by dutch
Tue May 12, 2009 8:38 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

I can open MySql with ADORDD as Jeff example BUT cannot append or delete or modify record. It alway shows an error.
Anyone could help and example for these cases?

Regards,
Dutch
by anserkk
Tue May 12, 2009 5:08 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Dear Mr.Jeff,

I can browse the database but I get the same error when I try to add/modify the data.
If you have VARCHAR columns in the Table and if you try to add a Character type data without an Rtrim/Alltrim, then you may get error. That is just one of the reason and it is a very common mistake ...
by Jeff Barnes
Tue May 12, 2009 2:10 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

I spoke too soon ... I can browse the database but I get the same error when I try to add/modify the data.

Any ideas as to where I am going wrong?
by Jeff Barnes
Tue May 12, 2009 2:05 am
Forum: FiveWin for Harbour/xHarbour
Topic: MySql and AdoRdd
Replies: 19
Views: 6201

Re: MySql and AdrRdd

Never Mind.

I did not have records in the database :oops:

It works now. My very first successful MySql connection :D