Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor field contents via listbox index
Message
 
 
À
19/12/2000 17:31:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00455246
Message ID:
00455274
Vues:
32
Thanks Trey. That makes sense, however the MS example has the following code in it to go through the list looking for selected values...
isel=""
FOR i = 1 TO ThisForm.NumLstItm
   IF ThisForm.ItemSel(i)=1
       if i = 1
          isel = isel + ThisForm.List1.ListItem(i)
       ELSE
          isel = isel + ";  " + ThisForm.List1.ListItem(i)
       endif
   ENDIF
ENDFOR
... which does not move the record pointer. So, that's where I'm not sure how to get the field value in a loop like above. This code works for what I need (short of some small modifications), but I've tried to get to that "unseen" field there with no luck.

>>>>>>
Since the RowSource is a cursor, the record pointer moves in the cursor with the selected item in the listbox.
Say the cursor is called cuRowSource and you want the 2nd field, it would be
lcUnseenValue = cuRowSource.field2
>>>>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform