Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox doesn't like expressions?
Message
De
29/05/2003 16:45:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00794197
Message ID:
00794200
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
Rodd,

VFP is expecting a field list...I don't think VFP wants to be pushed in the direction you are taking it.

How bout using rowsourceType of 3 and using a SELECT statement containing the transform()?

>I have the following code in the activate of a page:
>
>this.lstntm1.RowSource = [TRANSFORM((matches.rank/7)*100,"999%"),name]
>this.lstntm1.RowSourceType = 6
>
>Matches is the name of a cursor. Rank and Name are fields in the cursor.
>
>This code works great and the listbox displays them no problem. However, what I really want is to see name first and then my expression. Everytime I try to switch them around, things go haywire.
>
>I've tried the following:
>
>... = [matches.name, TRANSFORM((matches.rank/7)*100,"999%")]
>... = [matches.name, TRANSFORM((rank/7)*100,"999%")]
>... = [matches.name, = TRANSFORM((rank/7)*100,"999%")]
>
>Will a listbox not accept expressions if they are not in the first column?
>
>Thanks in advance for your input.
>
>Rodd
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform