Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select column filter
Message
From
17/03/2014 12:12:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596608
Message ID:
01596678
Views:
41
How about something like
SELECT mutable
nFields = AFIELDS(aFlds)
lcFields = ""
FOR iField = 1 TO nFields
     IF aFlds[iField,1] = "D_"
        lcFields = lcFields+","+aFlds[iField,1]
    ENDIF
ENDFOR

IF EMPTY(lcFields)
    MESSAGEBOX("No Fields Found")
ELSE
    lcSql = "SELECT " + SUBSTR(lcFields,2) + " FROM mutable INTO CURSOR myCursor READWRITE
    &lcSql
ENDIF
>Hi all,
>
>i want use a sql command.
>I want only filter the fields of my table beginning by D_ ( ex d_date … d_ stop )
>
>select *.d from mutable is bad…
>
>which command can i use ?
>
>Thank in advance
>
>
>bernhart
Previous
Reply
Map
View

Click here to load this message in the networking platform