X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,95e1feafcd3e7471 X-Google-Attributes: gidf996b,public From: "Martin Atkins" Subject: Re: Cantering MOOSE / anyone do gaits? Date: 1998/01/27 Message-ID: <01bd2b6d$2ca23720$LocalHost@atkins>#1/1 X-Deja-AN: 319786286 X-NNTP-Posting-Host: 194.117.152.68 References: <34C3E250.553A@freent.toronto.on.ca> <34C49C89.2F24@freent.toronto.on.ca> <34CCC899.7B0E@wing.rug.nl> Organization: Bungle & Mart`s Weird, Wonderful World Newsgroups: alt.ascii-art .------- Shimrod wrote... | | I'm not too familiar with basic, what does left$/mid$/right$ do or mean? | '------------------------------ LEFT$ takes the leftmost characters from a string eg: n$=LEFT$("Hello",2) n$ will equal "He" RIGHT$ is the same, but for the right of the string. MID$ can be used to take part of a string from the middle: eg: n$=MID$("Hello",2,2) n$ will equal "el" Try this ickle QBasic prog: * sc$=SPACE$(80)+"This is a little QBasic program to demonstrate MID$ and what it can be used for.... created by Martin Atkins (mart.atkins@bigfoot.com)"+SPACE$(1) * FOR q=1 to LEN(sc$) * m$=MID$(sc$,q,79) * LOCATE 1,1 : PRINT m$ * FOR del=1 to 180 : NEXT * NEXT Don`t put in the *`s - they are just there to indicate a new line. If my Newsreader wraps this (which it probably will), you will need to stick the long lines back together. ||||| __________________________________________ |||( O| / IF ELSE ENDIF GOTO THEN PRINT INPUT... / ||| > _____/ ______________________________________/ | <| /________/ \ \__/ | | | I`ve got to stop using QBasic | | | | | so much.... :) / " \ __ |____|__| |\\ |/.-' _.|______|__| mga | \\// """"""""""""" -- _ ____.Martin Atkins AKA mga.____ / | """"-mart.atkins@bigfoot.com-"""" / | ___________________________________/___|_ __/___| o o o o o o o o o o o A _______ | _-" -________________\ \____________-" \_____\ mga