Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: Return Valu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 174 of 275
Post > Topic >>

Re: Return Value of Function ?!?!

by buck huffman <no@[EMAIL PROTECTED] > Jan 18, 2006 at 01:27 PM

If you want to get the numeric long integer value of chars, try

    FUNCTION = VAL(chars)

if you're trying to retrieve the text or "string" representation of chars
then 
you need to declare the function as such, like this

    DECLARE FUNCTION read_gho_description(ghofile AS ASCIIZ * 50) AS
STRING

Note the "AS STRING" on the end. Then the rest is simple.

FUNCTION read_gho_description(ghofile AS ASCIIZ * 50) AS STRING
....
    FUNCTION = chars
END FUNCTION


I hope this helps
Buck
 




 3 Posts in Topic:
Return Value of Function ?!?!
Alen Hopek <alen.hopek  2006-01-18 18:46:58 
Re: Return Value of Function ?!?!
buck huffman <no@[EMAI  2006-01-18 13:27:26 
Re: Return Value of Function ?!?!
"Greg Neill" &l  2006-01-18 13:26:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 22:41:38 CDT 2008.