Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Union Selects
Message
De
12/08/1996 07:02:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Union Selects
Divers
Thread ID:
00005557
Message ID:
00005557
Vues:
73
Some guy in the FOXPRO-L mailing-list asked for a funny thing:

He wanted to do a UNION SELECT between a memo-field and a Character field. Something like:

Select From tableX
Union Select From tableY.

To solve the problem I've replied with a function:

Function TransMemo(tmMemo)
Local I
Local RetVal

I = 0
RetVal = ""
For I = 1 To MemLines(tmMemo)
RetVal = RetVal + " " + MLine(tmMemo, I)
Next

Return RetVal

so that he could use as:

Select TransMemo() From tableX
Union Select From tableY

I warned him that this could be slow...
Does anyone have other ideas?
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform