What's new

Closed Project vb.net help

Status
Not open for further replies.

xValk

Forum Veteran
Elite
Joined
Jul 1, 2016
Posts
1,283
Reaction
1,610
Points
546
Age
31
hi goodeve po pwde po magpatulong about sa vb.net and connecting data base.

here is my idea to my project.
gagawa sana ko game like who wants to be a millionaire ung gameplay.but ung questions nya is nakarandomize galing sa database.

if possible po .give me some tips or hint .baguhan lng po sa pag porprogram.saba po ay matulungan nyo ko.
 
Nakagawa rin ako ng ganitong game before, but in C# though hindi ko na alam saan ko nalagay haha.

Before the tips, ask yourself first: Para saan ba tong app na to, for deployment sa store or school project?
Another is, anong alam mong database na gamitin?

Most of the time, I would use ADO.NET since smaller and easy deployment compared to others.

Now, let's move on to the tips kung paano gawin yung randomization ng questions.

Ilagay mo yung questions mo sa database with this format.
QuestionID | Question | Choice 1 | Choice 2 | Choice 3 | Choice 4 | CorrectAns
1 | What does SQL stands for? | Structured Query Language | Simple Query Language | Saving Query Language | Stored Query Language | Structured Query Language

Then, sa code-behind mo. Gawa ka ng method na mag-gegenerate ng RANDOM numbers. Note: Ang range is the total number of your questions. For example, meron kang 50 questions in total so ofourse i-set mo to 50 yung range ng RANDOM variable mo. BUT WHY?
- The answer is, once nakagenerate ka na ng random number pwede mo ng i-retrieve yung data galing sa database mo then make a method para sa assigning of data into your respective textbox.

You get the idea. :)
 
Nakagawa rin ako ng ganitong game before, but in C# though hindi ko na alam saan ko nalagay haha.

Before the tips, ask yourself first: Para saan ba tong app na to, for deployment sa store or school project?
Another is, anong alam mong database na gamitin?

Most of the time, I would use ADO.NET since smaller and easy deployment compared to others.

Now, let's move on to the tips kung paano gawin yung randomization ng questions.

Ilagay mo yung questions mo sa database with this format.
QuestionID | Question | Choice 1 | Choice 2 | Choice 3 | Choice 4 | CorrectAns
1 | What does SQL stands for? | Structured Query Language | Simple Query Language | Saving Query Language | Stored Query Language | Structured Query Language

Then, sa code-behind mo. Gawa ka ng method na mag-gegenerate ng RANDOM numbers. Note: Ang range is the total number of your questions. For example, meron kang 50 questions in total so ofourse i-set mo to 50 yung range ng RANDOM variable mo. BUT WHY?
- The answer is, once nakagenerate ka na ng random number pwede mo ng i-retrieve yung data galing sa database mo then make a method para sa assigning of data into your respective textbox.

You get the idea. :)

salamat po sir.mejo na enlighten ako sa sinabi mo.and nadagdagan ung ideas ko kung pano ko sya magagawa.
 
ung sa pag generate ko ng random question.pano po kapag nag generate ulit dapat hindi nya na uulitin ung na generate. using if statement po ba?
 
Status
Not open for further replies.

Similar threads

Back
Top