Page 1 of 1

Crossword-An alternative way of doing one~

PostPosted: Thu Jul 31, 2008 5:06 am
by mercedes
This is the way I did a crossword..Of course there may be nicer ways of doing one or more professional ways thats for sure..:P
First create one by drawing one with words to go with it. I drew this one in Paint to give you an Idea of what it could look like.

PostPosted: Thu Jul 31, 2008 10:38 am
by Mystery
Nice! :)

PostPosted: Thu Jul 31, 2008 12:20 pm
by ShadowHunter
Hi,

Very nice :D

I would recommand you use Lcase in your comparison. LCase converts all the input to lower case, which makes it better to compare:

HELLO is not Hello or hello

But

Lcase (Hallo) becomes hallo

So Lcase(input) = "hallo" will validate as TRUE even when the user inputs "HELLO", "Hello", "hello", "HEllO" and so on...

I hope this makes sence :D

With best regards,

ShAdOwHuNtEr

PostPosted: Thu Jul 31, 2008 9:54 pm
by mercedes
Hi there...

Thanks Mystery, ShadowHunter..:D


I think I know what you mean ShadowHunter..You are saying that if i used Lcase..the user can put in hello spelled anyway..and it will work? Like a real crossword..
That way would be much easier..therefore they wouldn't; get "wrong word"..if they used a capital..or whichever ..as long as they spelled the word..

I'll remember that for next time..:D I gather its done the same way..only instead of saying Sellect Case..its Sellect Lcase in the statement..

Scripting is alot of fun..but really frustrating at the same time..lol... I'ts like learning a whole new language..:P


Thanks Guys for kudos..~


Peace
Adieux

PostPosted: Fri Aug 01, 2008 10:47 am
by Lyberodoggy
No mercedes, it's not select lcase.

Just modify the variable that stores the written word of the textbox so that it is variable=lcase(variable)
then just select case variable.


Very nice tutorial by the way.

PostPosted: Fri Aug 01, 2008 6:10 pm
by ShadowHunter
Hi Mercedes,

Indeed, that is exactly what is does !

Yes, coding is a lot of fun :D

With best regards,

ShAdOwHuNtEr

PostPosted: Thu Aug 07, 2008 12:44 am
by Chromegloss55
I know this is a really obvious point, but if you prefer you can also convert to uppercase using the UCase function.

Just thought I'd mention it.
_________________
grapefruit seeds