Live Tutoria?
- Posted by "Lynn Kilroy" <leks_transportation at hotmail.com> Jan 19, 2006
- 522 views
Okies. You guys all gave me great advice, so I think I will ask for little= code snippets to make mine own include file. I can examine your snippets t= o better understand the syntax of the language, and I can ask questions about= various snippets. I know you all already told me about the Inkey Function,= but some idiot I've never met decided it was a good idea to delete those= messages without putting the code you guys all slaved over and over again o= n before she could copy it to Euphoria. So, I'm going to need it again. Along with the little code snippets, I think I will ask questions and stuff= about the little snippets so I can understand each one. I will, as I learn= the syntax of the language, take cracks at code snippets myself, and post= them here to see if I'm beginning to get the hang of things. I write in= QBasic, which isn't case sensative, so this case sensativity thing is new t= o me. That said, I was told I have very Pascal conventions in coding, and= that I *do* use Caps consistently. If I lost anyone, please let me know. {Blushes} So, if we may, I would like to begin with the Inkey function. INKEY$ just= reads a key from the keyboard buffer. It does not wait for a user to press= a key. Since all my programs use this funtion, and since I'm used to using= it, I would like to begin by building a whole new library with this. I guess I would call the file 'Inkey.E,' and and it would be dedicated to all= the functions that read a key from the keyboard buffer. I will later take= cracks at keyboard filter input subroutines, but I think I would include= that in my ColorLocate include file {'ClrLcate.E?'}. If there is nothing i= n the keyboard buffer, INKEY$ returns a nul string {""}, but I would need to= know the Euphoria equivilant of this. You already told me, but I am clearl= y too lazy to look in the archives. So ... to begin with, how would the Include File be formatted? And how would the call be made? There would be no need to pass an argument to function Inkey, as it only returns results: A key from the keyboard buffer.= >function Inkey >? >end function Please help me with the syntax and stuff for the Inkey.E include file. {Smiles} Love & Friendship & Blessed Be! Lynn Erika Kilroy