Hi,
I tried this syntax with on init, but it doesn't do the job
~~~
public agMois:={"Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"}
BEGIN PAGE "Grégorien vers Révolutionnaire" OF oTab
@ 10,10 SAY cText01 SIZE 135, 22 COLOR hwg_ColorC2N("0000FF")
@ 15,32 GET COMBOBOX cgAn ITEMS agAn STYLE WS_TABSTOP SIZE 100, 25 ;
TEXT
@ 155,10 SAY cText02 SIZE 135, 22 COLOR hwg_ColorC2N("0000FF")
@ 140,32 GET COMBOBOX cgMois ITEMS agMois STYLE WS_TABSTOP SIZE 150,25; TEXT ON INIT {||cgMois:=agMois[9]}
@ 310,10 SAY cText03 SIZE 130, 22 COLOR hwg_ColorC2N("0000FF")
@ 335,32 GET COMBOBOX cgJour ITEMS agJour STYLE WS_TABSTOP ;
SIZE 60, 25 TEXT
END PAGE OF oTab
~~~
Is there a way to do it ?
Thanks
A+
Just initialize a combobox variable with a necessary value before:
cgMois:=agMois[9]
...
@ 140,32 GET COMBOBOX cgMois ITEMS agMois ...
Regards, Alexander
Hi,
ok for this sample, but I have others combobox where the elements are very high, (about 300), and where the initialisation can't be used.
Is there a way to have an empty element as first element, and the way to enter something to directly find this element ?
Thanks
A+
300 recs is table size, why not using valid browse dbf or array?
Pada Sel, 4 Jun 2024 00.00, Aupeix Alain jujuland@users.sourceforge.net
menulis:
Related
Support Requests: #82
Hi,
I don't want here to use browse here, and it's already an array which has now 354 elements, and will quickly grow to one hundred more ...
Here are the elements structure :
Here is a way, not really what I want, but it helps a little, and is really faster than browsing or searching in a combobox.
The only ennoying detail, is that I must use UP or DOWN keys too change the element, else it begins at the beginning of the array. Bus, when we know it, it's not really a problem.
The blank element at the beginning just ought to do about the same thing, without needing hwg_MsgGet()
A+
Last edit: Aupeix Alain 2024-06-05