Results 1 to 3 of 3

Thread: [RESOLVED] Making a bingo game with words for kindergarten

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,295

    Resolved [RESOLVED] Making a bingo game with words for kindergarten

    Hi there folks! I am working on a bingo game to teach kindergarten students sight words. I have recorded a bunch of mp3 files, and put them in a filelist. Basically, the program randomly picks a filename from the filelist, puts into a label caption and calls it. However, I would like to put the filename without the file type into a label caption. So if the filename was "because.mp3" .. could I use left$ to just cut of the filename without the filetype? If that is the case, how would the left$ function know how many characters to go over because some words might be shorter than some. I mean they all have .mp3 at the end so, maybe that could be the reference?

    Any tips would be awesome!

    Thanks!

  2. #2
    Hyperactive Member
    Join Date
    Mar 2017
    Posts
    500

    Re: Making a bingo game with words for kindergarten

    Use InstrRev and find first "." then use Left$ to get the name

    name = Left$(filename, InStrRev(filename, ".") - 1)

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,295

    Re: Making a bingo game with words for kindergarten

    Perfect thank you for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width