An Idea of mine

Discussion in 'Programming General' started by tomanderson12, Sep 19, 2008.

An Idea of mine
  1. Unread #1 - Sep 19, 2008 at 9:52 PM
  2. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    An Idea of mine

    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,
     
  3. Unread #2 - Sep 19, 2008 at 11:22 PM
  4. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    An Idea of mine

    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.
     
  5. Unread #3 - Sep 20, 2008 at 3:29 AM
  6. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    An Idea of mine

    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.
     
  7. Unread #4 - Sep 20, 2008 at 7:30 AM
  8. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    An Idea of mine

    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
    
     
  9. Unread #5 - Sep 20, 2008 at 8:33 AM
  10. htaed
    Joined:
    Dec 19, 2005
    Posts:
    336
    Referrals:
    0
    Sythe Gold:
    0

    htaed Forum Addict
    Banned

    An Idea of mine

    Common swan reply I am interested to :D
     
  11. Unread #6 - Sep 20, 2008 at 10:20 AM
  12. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    An Idea of mine

    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.
     

    Attached Files:

  13. Unread #7 - Sep 20, 2008 at 12:47 PM
  14. htaed
    Joined:
    Dec 19, 2005
    Posts:
    336
    Referrals:
    0
    Sythe Gold:
    0

    htaed Forum Addict
    Banned

    An Idea of mine

    Thats very interesting mate, thank you :)
     
  15. Unread #8 - Sep 20, 2008 at 2:30 PM
  16. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    An Idea of mine

    Thats cool thanks, final quesiton is how do i add information to search for ? like were does it search when i click search thanks
     
  17. Unread #9 - Sep 20, 2008 at 2:32 PM
  18. htaed
    Joined:
    Dec 19, 2005
    Posts:
    336
    Referrals:
    0
    Sythe Gold:
    0

    htaed Forum Addict
    Banned

    An Idea of mine

    Read the code
     
  19. Unread #10 - Sep 20, 2008 at 4:02 PM
  20. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    An Idea of mine

    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 ?
     
  21. Unread #11 - Sep 20, 2008 at 11:39 PM
  22. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    An Idea of mine

    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
     
  23. Unread #12 - Sep 21, 2008 at 2:21 AM
  24. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    An Idea of mine

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

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

    That is why you use RegEx.
     
  25. Unread #13 - Sep 21, 2008 at 3:28 AM
  26. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    An Idea of mine

    Ini Class Module + RegEx = Sex.

    I'd make you an example but i seriously cbf finding the Ini Class Module or making something similar myself.
     
< How do I save a visual C# project as one single .exe file? | Learn C ( Guide ) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site