Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming tables at runtime
Message
De
17/12/2003 08:04:36
 
 
À
17/12/2003 07:19:41
Paul Williams
Powerful Wonders
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00859829
Message ID:
00859837
Vues:
18
hi Paul

VFP use litteral naming on various command.
use () for force to eval a litteral expression,
but for the command clause you must use macro substitution.
cursorName = "myName"

SELECT someValue FROM someTable INTO CURSOR (m.cursorName)
SELECT someValue FROM someTable INTO TABLE (m.cursorName)

fieldName ="F1"
fieldType="C(10)"
CREATE CURSOR (m.cursorName) ((m.fieldName ) &fieldType)
VFP help have not information
for support/unsupport of expression/(expression)/macro.
You must lose your time to try and remember.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform