|
-
Apr 9th, 2017, 01:18 AM
#1
Thread Starter
PowerPoster
[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!
-
Apr 9th, 2017, 02:03 AM
#2
Hyperactive Member
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)
-
Apr 9th, 2017, 02:15 AM
#3
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|