• Log in or sign up for an account here: https://www.sythe.org/login

An Idea of mine

tomanderson12

Member
Joined
Jan 21, 2008
Sythe Gold
0
Messages
53
Well I have an idea on something I would like to make but honestly I have no clue were to start im sure i could do it if someone gave me a 'push' in the right direction.

Basically I want to create a information bank to put it simply were its like a dictionary in some aspects.

Its to allow users or myself search the program to find information such as what to do in certain situations etc all the information that will be shown when searched isnt an online source I will write it

So I need a few ways i could do this.

My made idea was to have a lot of forms for each letter of the alphabet then on there have all the information on that letter, and on the main form have a search box which i have no clue on how to create to search within my own forms.

anyone got any other ways or ideas or any starting points for the search

Thanks,
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
How about just have 2 forms and a shit ton of if statements. So like on form1, there would be a textbox an a command button, then on form2 there would be a single but large text box for all your info. Then when a question is put into form1's textbox and the button is clicked, you'd do this:

Code:
Private Sub Command1_Click()

If Text1.Text = "Who's the most epic guy in the world?" Then
Form2.Show
Form2.Text1.Text = "Blupig of course you dumbass."
End If

End Sub

Etc.
 
Member of the Month Winner
Sythe's 10th Anniversary
Terrible! Absolutely terrible!

A good way to do it would to have a list of strings and their explanations / information in a file. In example:

Code:
// Syntax=<word:meaning>
IRC:Internet Relay Chat
VB:Visual Basic
.Net:A platform developed by Microsoft

To parse this file, you would probably use RegEx.
 
I like both ideas, but the first way seems like it would be alot more lines of code than the second, But Swan how would I create a search feature ?

Also were do i put the
Code:
 	// Syntax=<word:meaning>
IRC:Internet Relay Chat
VB:Visual Basic
.Net:A platform developed by Microsoft
 
I think it would be quite simple. All you would need is a few Split functions and just some looping. I'll type up an example for you to use. :D

EDIT: Check attachment for sexy times.
 

Attachments

Thats cool thanks, final quesiton is how do i add information to search for ? like were does it search when i click search thanks
 
I did read the code but i couldn't see it anywere


Iv got it now, I cant believe i didnt see the big data file looking at me lol

but i have one question. If i enter a long description of something I doesn't seem to work correctly when I search it shows up with some of the description in the top area rather than the bottom, Is this because I have the word again in the description ?
 
I did read the code but i couldn't see it anywere


Iv got it now, I cant believe i didnt see the big data file looking at me lol

but i have one question. If i enter a long description of something I doesn't seem to work correctly when I search it shows up with some of the description in the top area rather than the bottom, Is this because I have the word again in the description ?

I'm not too sure, if you can PM me your data file, I'll do some testing.

EDIT: I did some testing with long strings and nothing went wrong.

That only thing I can think you're doing wrong is adding new lines into the meaning. :S
 
Member of the Month Winner
Sythe's 10th Anniversary
Common swan reply I am interested to :D

Basically, you would add the definitions to a common text file in the given format, then write some code to read that file.

I think it would be quite simple. All you would need is a few Split functions and just some looping. I'll type up an example for you to use. :D

EDIT: Check attachment for sexy times.

RegEx! I said REGEX! http://en.wikipedia.org/wiki/Regular_expression

I'm not too sure, if you can PM me your data file, I'll do some testing.

EDIT: I did some testing with long strings and nothing went wrong.

That only thing I can think you're doing wrong is adding new lines into the meaning. :S

That is why you use RegEx.
 
Runescape Gamblingrunescape gambling
Back
Top