Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to show only certain fields in grid
Message
 
 
À
28/10/2008 10:26:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01357674
Message ID:
01357691
Vues:
17
This is for the listbox.

>Was it never supported? I swear I've used something like that in the past.
>
>>The former is supported syntax, the later is not.
>>
>>You've a few choices (in no particular order):
>>- Run another query to create new cursor with fields you need
>>- Use SET FIELDS TO
>>- Configure ControlSource of the columns to display specific fields only
>>
>>
>>>I have a cursor for which I only want to show certain fields in a grid.
>>>
>>>Why does this work, showing all the fields...
>>>
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = ''
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = 'WorkListXMLCursor'
>>>
>>>But not this to show selected fields?
>>>
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = ''
>>>	.Fm_CONTAINER1.grdWorkListXMLCursor.RecordSource = 'WorkListXMLCursor.Desc,FieldVal'
>>>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform