RE: Live Tutoria?
- Posted by Lynn Kilroy <leks_transportation at hotmail.com> Jan 22, 2006
- 445 views
Jason Gade wrote: > > > > > Sequence is the Euphoria equivilant of the Array, correct? And it > > really has no real type, and &= tells Euphoria to place the value of the > > > > var on the right of the &= in to the next element in the sequence on the > > > > left, correct? > > Yes, that is correct. Like C and other related languages (and like at > the machine level) a string is just an array of characters. When I first > started with 8-bit BASICs on the Apple-][ and Commodore-64 I didn't > realize this. > > Yes, &= "appends" the value to the end of a sequence. I probably > shouldn't have used the shortcut, I probably should have used the long > version: > string_in = string_in & Key > Same thing, just a shortcut. Again, a shortcuts like this are a useful > relic from C. > This is okay. I like it, and it isn't that hard to understand. I learned it from what you showed me and could guess at it's meaning. How do I drop a character off the end of the array/sequence? > > > > So I added it with some little tidbits and ended up with a dump. > > > > }}} <eucode> > > {Removed} > > </eucode> {{{ > > > > Tell me what I'm doing wrong? > > > > Love & Friendship & Blessed Be! > > Lynn Erika Kilroy > > It looks like you are passing an integer or an atom where Euphoria > expects a sequence. This is a common problem. Whichever way you are > calling ColorLocatePrintTextOnly(), wrap the Text parameter with {}. > That is call it like so: > I am such an idiot! I had integer Key, and sequence Text. I put integer Key where sequence Text belonged, like this:
ColorLocatePrint(14, 1, 1, 1, Key)
instead of like this:
ColorLocatePrint(14, 1, 1, 1, Text)
No wonder I was having such problems! Love & Friendship & Blessed Be! Lynn Erika Kilroy