English
Forum

RadioButtons

 
- Page 1 -



diimool25
Hello I brächte Help means we want one ''Quiz'' make and having because radioButtons as antwortmöglichkeiten.
how can I the now take on the if I on evaluate press the there standing the The response correctly. or wrong is

thanks for hilfen !!!
 
02/25/14  
 



 
- Page 1 -



diimool25
thanks
 
02/26/14  
 




diimool25
How can I the make I still others ask can make means if I on enien button click open itself others ask ?
 
03/07/14  
 




diimool25
thanks but have now yourself a ösung found
 
03/07/14  
 




diimool25
can me of/ one say How I the can make the me said becomes you have 3 of 6 correctly. ?
 
03/08/14  
 



 
- Page 2 -



Michael
Wodrich
well through Buchführung.
with eachone Frageauswertung count You The right Answer.
CompileMarkSeparation
Inc Richtige_Antworten%
>

Also should not any ask at the same time showing, separate always a question and the possible Answer. thereafter becomes determined whether it correctly. was (counted) and then goes it moreover with the next question.
on the end has one then the desired result.
 
XProfan X2
Windows (TM) Vista Ultimate, Core(TM) i7 920 @ 2.67GHz, 9206,26 MB

Programmieren, das spannendste Detektivspiel der Welt.
03/08/14  
 




H.Brill
moreover could one another Ini-File make.
about in the form :



[Siele]
number = "5" ' for Begrenzung of Randomize
[1]
question1 = "blabla"
question2 = "blublu"
question3 = "blibli"
....
question5 = "..."
Antw1 = "lala"
Antw2 = "lulu"
Antw3 = "lili"
....
Antw15 = "..."
correctly. = "1,5,9,11,14" ' with 5 Groupboxen with apiece 3 ask u. Answer
[2]
here gleiches schema How under [1]
[3]
here gleiches schema How under [1]
[4]
here gleiches schema How under [1]
[5]
here gleiches schema How under [1]


Per Zufallsgenerator (Randomize) could one then a casually
number ([Rubrik] start and the Radiobuttons bestücken and
The Answer present. is hold only meaningfully, if always 3 ask
and 3 Answer there are and z.B. 5 Groupboxen with apiece 3 ask u.
Answer. Kannste Yes to your imaginations adjust.

if The File of users not viewing go should, can
tappt im dunkeln too code. accordingly can with the Content nothing begin.
is hold only one plainer protection.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
03/08/14  
 




diimool25
and How very should I book lead ?
 
03/08/14  
 




H.Brill
what Dou you mean very with 'buch führen' ?

is so The Auswertung the right Answer
meant ? or the Save the right
for a player ?

for the Save the right can you Yes
again a Ini-File take :
[diimool25]
Right thing = "4"
date = Date$
etc.

what above-mentioned Ini-File concerns, must You you hold one schema
conceive. Can too so make :
[1]
question1 = "..."
Antw1 = "..."
Antw2 = "..."
Antw3 = "..."
question2 = "..."
Antw1 = "..."
Antw2 = "..."
Antw3 = "..."

and to that Schluß then
Right thing = "1,5,9,11,14"

but the first supra is leichter with of/ one Loop auszulesen.
the aray would I with 16 Einträgen define, so You always
with 1 begin can To count. remaining hold element 0 always spare.
CompileMarkSeparation
WhileLoop 1, 15

    SetText RadionButtons%[&LOOP], ReadIni$(inidatei$, "1", "Antw" + Str$(&LOOP))

EndWhil

whom Rubriknamen (here "1") must You then too variable hold,
circa different Games To loading.

The 5 ask can you Yes slight eachone Groupbox allocate.
then The right read. with of/ one WhileLoop Loop
1-5 and SubStr$().
CompileMarkSeparation
' sees then so from
Declare right%[16], correctly.$
richtig$ = "1,5,8,11,14"
Clear right%[]

WhileLoop 1, 5

    right%[Val(SubStr$(correctly.$, &LOOP, ","))] = 1

EndWhile

' and schwupp di wupp is your Wahrheitstabelle on whom
'right to put staid or.filled.
Print correctly.$

WhileLoop 1, 15

    Print &LOOP; " : "; right%[&LOOP]

EndWhile

waitkey
End

before would I me manner Wahrheitstabelle
(num. aray with 16 Elementen) make. there write You hold on whom
right to put a 1 mere. The runs then later with the Auswertung
simultan with the RadioButtons%[] aray.
CompileMarkSeparation
WhileLoop 1, 15

    If GetCheck(RadioButtons%[&LOOP]) And (Right thing%[&LOOP] = 1)

        Inc Right thing%

    EndIf

EndWhile


there are your fancy but no border staid. can also one
String-aray take and a "X" as correctly. Mark.
think but on it, at Reading the Inidatei the Wahrheitsarray[]
with Clear To delete.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
03/09/14  
 




Michael
Wodrich
good ideas,

but that here...

H.Brill (09.03.14)

what above-mentioned Ini-File concerns, must You you hold one schema
conceive. Can too so make :
question1 = "..."
Antw1 = "..."
Antw2 = "..."
Antw3 = "..."
question2 = "..."
Antw1 = "..."
Antw2 = "..."
Antw3 = "..."


...must something differently looks. Glücklicherweise have You others Proposals made. on this part disturbing The identischen Key with AntwX. there should then sooner Antw1_1, Antw1_2,... etc. uses go.
 
XProfan X2
Windows (TM) Vista Ultimate, Core(TM) i7 920 @ 2.67GHz, 9206,26 MB

Programmieren, das spannendste Detektivspiel der Welt.
03/09/14  
 




diimool25
Yes with book lead my I the if one 6 ask has the latterly if one on evaluate clicking the because there standing you have 5 of 6 correctly.
 
03/09/14  
 




H.Brill
Yes, where is because now the trouble ?
The amount (6) ask stand Yes in your mask (apiece 1 Groupbox + 3 Radiobuttons)
solid.
Right thing% setting You at the beginning on 0
and clatter The Radiobuttons How supra ex :
CompileMarkSeparation
Richtige% = 0

WhileLoop 1, 18

    If GetCheck(RadioButtons%[&LOOP]) And (Richtige%[&LOOP] = 1)

        ' Wird nur dann erhöht, wenn der entsprechende Radiobutton markiert
        ' und in der Wahrheitstabelle an dieser Position eine 1 steht.
        Inc Richtige%

    EndIf

EndWhile

Print "Du hast "; Richtige%; " von 6 richtig 
;
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
03/09/14  
 




diimool25
ahhh now Have I it Thank you !!
 
03/09/14  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

16.692 Views

Untitledvor 0 min.
Erasmus.Herold06/11/19
rquindt05/08/18
Ernst06/15/16
Joerg06/09/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie