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.

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 13th Jun 2003 18:42
OK, I cannot figure out what is going on here. I am passing a variable (Task$) from one function to another function. In the second function, I have the following line:

Length = LEN(Task$)

Just to check it was OK....I told the program to print the value of Length. It never prints the proper length....sometimes 1 sometimes 2!
Figuring that the variable Task$ wasn't being passed correctly, I told it to print out the variable and then print out the length. It printed out the string in it's entirety but still got the wrong length!!!! What the hell is happening?!!!
Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Jun 2003 18:52
Something like this?



Works OK for me.
APEXnow
Retired Moderator
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 13th Jun 2003 19:01
You're not adding a CR/LF or anything to the end of the string are you?

"Man who looses key to woman's appartment...... He get no nookie" - A wise chinese man.
ToXic
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 13th Jun 2003 19:22
are you passing the variable Length to the other function, you said you are using 2 functions ?, MyFunction(Length, Task$).
or make Task$ and Length Global variables.

just a thaught.


ToXic.
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 13th Jun 2003 19:26
Here are the 2 culprit functions involved. Does it matter that the string being passed from one function to another is stored in a non-global variable called Task$ when the functions all use the same name (Task$) for that string?

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 14th Jun 2003 22:27
oh really
I love strings
hehehe [img] [/img]

Info Q.&statments corect@da time of going to pres. I acept 0 responsibility for typos gramaticaly incorect txt swering or pety complant tht u hve so just piss off unles u r anserin da Q.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Jun 2003 22:50
just glancing at it now I can see one error

the ... denotes attaching lines together if they are too long for you to see in your editor.

Attreid
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 15th Jun 2003 01:59
Frobscottle , you're wrong ... I prefere when there is no string anymore

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."

Login to post a reply

Server time is: 2026-07-18 07:30:55
Your offset time is: 2026-07-18 07:30:55