Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / quick question.

Author
Message
Phoenix
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 18th Jun 2003 02:38
is it possible to have someone input a word or a phrase and then after that take off the last letter or the first
ex: input=I'm cool
would it be pssible to take off just one letter and make it equal another variable?
position object myFoot,object position x(yourFace),object position y(yourFace),object position z(yourFace)
Trowbee
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 18th Jun 2003 02:44
not sure I fully understand what you're asking, but here goes

You mean like:
input "enter your input", variable1
variable2=left$(variable1,len(variable1)-1) [to take off the last letter] or
variable2=right$(variable1,len(variable1)-1) [to take off the first letter]
Phoenix
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 18th Jun 2003 03:25
yes that mostly what I'm asking but is there a way to make another variable equal the letter that was taken away?

position object myFoot,object position x(yourFace),object position y(yourFace),object position z(yourFace)
Trowbee
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 18th Jun 2003 03:47
oh the letter that was taken away...yup, just slightly modify the code I wrote:

input "enter your input", variable1
variable2=left$(variable1,1) [to assign the first letter] or
variable2=right$(variable1,1) [to assign the last letter]
Phoenix
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 18th Jun 2003 04:18
thanks that really helped!

position object myFoot,object position x(yourFace),object position y(yourFace),object position z(yourFace)

Login to post a reply

Server time is: 2024-11-24 18:21:15
Your offset time is: 2024-11-24 18:21:15