Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Contained in Field Name
Message
From
31/10/2001 18:35:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00575887
Message ID:
00575941
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>I am trying to come up with a quick, effecient way of issuing a BROWSE... from the command window where I brow fields containing "xx" in their fieldname. For example, I want to browse all the fields in a table that have a "PD" in their fieldname. So I would browse MedPD, SurgPD but not browse FeeKey.
>
>Any suggestions?
SET FIELDS TO ALL LIKE ???PD
BROWSE
SET FIELDS TO
Won't work, because you have different number of characters before PD. But, much to my surprise, Set Fields is additive - which cost me several hours once to discover, but then I earned a few grays in return - so the code should look more like this (add lines as needed)
SET FIELDS TO ALL LIKE ?PD
SET FIELDS TO ALL LIKE ??PD
SET FIELDS TO ALL LIKE ???PD
SET FIELDS TO ALL LIKE ????PD
SET FIELDS TO ALL LIKE ?????PD
BROWSE
SET FIELDS TO

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform