Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert
Message
 
À
31/05/2005 05:22:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01018623
Message ID:
01018635
Vues:
23
My mistake:
LOCAL lFlagused

CREATE TABLE New1 FREE (NEWQ C(10))

IF .NOT USED("ttable1")
   USE ttable1 IN 0
   lFlagused = .t.
ENDIF

SELECT ttable1
nCntFields = AFIELDS(aFlds)
FOR nCnt = 1 TO nCntFields
    IF LOWER(LEFT(aFlds[nCnt,1]),1) == "q" && I missed How many positions from LEFT to extract
       INSERT INTO New1 VALUES (aFlds[nCnt,1])
    ENDIF
NEXT

IF lFlagused
   USE IN SELECT("ttable1")
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform