Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining fields with SQL?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00411282
Message ID:
00411458
Vues:
8
Bill,

>Are you SURE <g> that the Full_Name that VFP evaluated first was short? I'll bet you were just 'lucky' PadR() takes 'luck' into your hands! <g>

Well, I didn't exhaustively test it, but I tried with a table containing two records:

Firstname(20) Lastname(30)
David Stevenson
William von Williams

Without PADR, just using TRIM(lastname)+", "+TRIM(firstname) AS fullname, I got complete entries in a field 52 chars wide.

I then reversed the order of the records, so William came first in the table, and got the same result.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform