Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
De
20/05/1999 12:44:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/05/1999 12:22:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Grids
Divers
Thread ID:
00220880
Message ID:
00220930
Vues:
20
>well the user clicks the on the item in the grid they want ok and then withing the same row there is more information in different cells so for instance if i want to select item a i would click on a and all the information in that row on the grid gets passed. what happens is the first time through when they click it it works fine. after they click the item on the grid they want they then click an ok button and i pass the values of there selection to other things the problem is that if they do not click on each cell in the given row it will not pass the information only the first time they use it will it pass the information here is how i pass the information this is pretty much all the code i use to handle it and like i said it works fine the first time through but the everytime there after it only passes info from the exact cell they click
>form1.a1social.value = form1.container3.grid2.column1.text1.value
>form1.accession.value = form1.container3.grid2.column2.text1.value
>form1.a4drawdate.value = form1.container3.grid2.column3.text1.value
>form1.a2lastname.value = form1.container3.grid1.column2.text1.value
>form1.a3firstname.value = form1.container3.grid1.column3.text1.value

Aha. Then you might do in more than one ways :
with thisform.container3
 with .grid2
 thisform1.a1social.value = eval(.column1.controlsource)
 thisform.accession.value = eval(.column2.controlsource)
 thisform.a4drawdate.value = eval(.column3.controlsource)
 endwith
 with .grid1
 thisform.a2lastname.value = eval(.column2.controlsource)
 thisform.a3firstname.value = eval(.column3.controlsource)
 endwith
endwith
Or directly set the corresponding controlsources for textboxes too and set them to RO, disabled etc.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform