Information générale
Titre:
Optiongroup in a grid
Hi, i'm a beginner at vfp please help me if you can. I've added an optiongroup in a grid with the following commands.
WITH THISFORM.grid2.column2
.ADDOBJECT('optgrp','optiongroup')
.CONTROLSOURCE=lifecard2.attend
.CURRENTCONTROL = 'optgrp'
.optgrp.buttoncount = 3
.optgrp.buttons (1).caption = 'A'
.optgrp.buttons (2).caption = 'B'
.optgrp.buttons (3).caption = 'C'
.optgrp.buttons (1).left = 10
.optgrp.buttons (1).top = 10
.optgrp.buttons (2).top = 10
.optgrp.buttons (2).left = 50
.optgrp.buttons (3).left = 90
.optgrp.buttons (3).top = 10
.optgrp.VISIBLE=.T.
.sparse = .f.
ENDWITH
there seem to be a problem with it. When i run the form, no option button has been selected although there is values from 1-3 inside the table. When i clicked on them, the values of the field attend in table lifecard do not change and remains the same value. Had been trying to solve this for quite some time, help will be greatly appreciated. Thanks in advance.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement