Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: writing an example from a book



hi,

> What can be done to make this line valid
>  IF .NOT. INVNUM()

i will not tell you what is wrong, but i can tell you how it makes sence to
you :

1.) compile your programm with /B . This will include some Debugger Info´s
2.) link your programm with /DE. dito for Debugger
3.) start your programm with "CLD.EXE myEXE"
4.) use F8 to see what happend

FUNCTION INVNUM()
******************
IF USEFILE("INUMBER",.F.)
    GOTO 1
ELSE
    RETURN .F.
ENDIF

look at the line number and remember it !

now start at point 1 again, but use /B /W (/W = Warning)
the warning will tell you that there is something wrong in line xxx.
do you remember the line number before ?

so you are just 1 step ahead from the solution. one more tip :
Procedure & Function shoud always end with RETURN. a function returns a
value (can also be NIL) a procedure shoud not return a value (else declare
it as
function)

have fun with this game ...
greetings by OHR
Jimmy





<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.