Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select column filter
Message
From
15/03/2014 16:26:30
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
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:
01596609
Views:
62
Bernhart,

all what I can think of is

get table structure via
COPY STRUCTURE EXTENDED TO FileName
Field "Field_Name" contains all Fields

now something like (does not work)
select Source
COPY STRUCTURE EXTENDED TO tabStruct
sele 0
use tabStruct
lcHelp = ""
scan for Field_Name='D_'
lcHelp = lcHelp+','+alltrim(Field_Name)
endscan

lcSQL = "SELECT "+strtran(lcHelp,',','',1,1)+" FROM Source INTO CURSOR curXYZ NOFILTER"
&lcSQL
HTH

Lutz
>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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform