Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert
Message
 
To
31/05/2005 05:22:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018623
Message ID:
01018635
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform