Campo EDIT que sea un campo de otra Base de datos

HMG en Español

Moderator: Rathinagiri

Post Reply
JALMAG
Posts: 166
Joined: Sun Jan 10, 2010 7:05 pm

Campo EDIT que sea un campo de otra Base de datos

Post by JALMAG » Tue Mar 30, 2010 11:41 am

Hola amigos, estoy realizando un programa de Comunidades de Propietarios, donde un campo de propietario es la Comunidad a la que pertenece, la cuestión es que en Clipper se podia hacer que un campo fuera el campo de otra base de datos. ¿Es esto posible en HMG?

Muchas gracias amigos.

English:

Dear friends, i am a program of Communities of Owners, where a field of owner is the Community which belongs to, the question is that in Clipper could make a field outside the field of another database. Is this possible in HMG? Thank you friends.

User avatar
esgici
Posts: 4268
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 146 times
Been thanked: 54 times
Contact:

Post by esgici » Tue Mar 30, 2010 12:30 pm

Hola JALMAG

Sorry, I don't understood your question. Probably translation lack :(

Could you send a small example on how Clipper "make a field" ?

Saludos, regards

--

Esgici
Viva INTERNATIONAL HMG :D

JALMAG
Posts: 166
Joined: Sun Jan 10, 2010 7:05 pm

Post by JALMAG » Tue Mar 30, 2010 12:42 pm

esgici wrote:Hola JALMAG

Sorry, I don't understood your question. Probably translation lack :(

Could you send a small example on how Clipper "make a field" ?

Saludos, regards

--

Esgici
Me explico mejor, En Clipper, se podia realizar que un campo de una base de datos fuera el campo de otra base de datos. Osea, imaginemos que estoy creando una factura, hay un campo que es el cliente, la pregunta es ¿Cómo podria hacer que ese campo desplegara los clientes para seleccionarlo directamente en un scroll?.

He cojido este ejemplo en Clipper, es parecido...

This is an example of a nested READ using a GetList and
lexical scoping:

#include "inkey.ch"
//
// Local to this function only
LOCAL GetList := {}
LOCAL cName := SPACE( 10 )
//
CLS
SETKEY( K_F2, { || MiscInfo() } ) // Hot key to special READ
//
// Get object added to getlist
// works on local getlist
@ 10, 10 SAY "Name" GET cName
READ
//
RETURN NIL

/***
* MiscInfo() ---> NIL
*/FUNCTION MiscInfo()
//
LOCAL GetList := {} // Local to this
LOCAL cExtraInfo := SPACE( 30 ) // function only
//
// Get object added to getlist
// works on local getlist
@ 12, 10 SAY "Note: " GET cExtraInfo
READ
//
RETURN NIL

English ¿...?

I explain me better, In Clipper, to carry out that a field of a database was the field of another database. Imagine that am creating a bill, there is a field that is the client, the question is How to do that that field spread clients to select it directly in a scroll?.

I have this example in Clipper, is similar...

User avatar
Rathinagiri
Posts: 5077
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 89 times
Been thanked: 103 times
Contact:

Post by Rathinagiri » Tue Mar 30, 2010 1:14 pm

If I understand correctly,

You are creating an invoice. An invoice can be for one client. We have the client details in another dbf file. You want to select a client from customer data file from a list of customers. Isn't it?

If that is the problem, we have combo box, listbox and grid for this.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4268
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 146 times
Been thanked: 54 times
Contact:

Post by esgici » Tue Mar 30, 2010 1:52 pm

rathinagiri wrote:If I understand correctly,

You are creating an invoice. An invoice can be for one client. We have the client details in another dbf file. You want to select a client from customer data file from a list of customers. Isn't it?

If that is the problem, we have combo box, listbox and grid for this.
Hi

Yes, I agree.

Regards, saludos

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
esgici
Posts: 4268
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 146 times
Been thanked: 54 times
Contact:

Post by esgici » Tue Mar 30, 2010 4:06 pm

Hola JALMAG

Please take a look at a nice project of our friend Sudip.

I hope that it will be useful for you.

Regards, saludos

--

Esgici
Viva INTERNATIONAL HMG :D

JALMAG
Posts: 166
Joined: Sun Jan 10, 2010 7:05 pm

Post by JALMAG » Tue Mar 30, 2010 9:04 pm

[quote="esgici"]Hola JALMAG

Please take a look at a nice project of our friend Sudip.

I hope that it will be useful for you.

Regards, saludos

--

Esgici[/quote

Muchas gracias Esgici, parece que es muy interesante.
Regards.

English:
Thank you very much Esgici, seems that it(he,she) is very interesting.
Regards.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest