Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function allways returns .T. instead of integer value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00785710
Message ID:
00785718
Vues:
11
Have you similar code?
...
PROCEDURE test()
   WITH This
   IF .Prop
      RETURN -1
   ENDIF
   ENDWITH 
   RETURN 1
ENDPROC
Valid code:
...
PROCEDURE test()
   LOCAL liRet
   
   WITH This
   liRet=IIF(.Prop,-1,1)
   ENDWITH 
   RETURN liRet
ENDPROC
MartinJ

>Hi,
>
>I ran into something very weird.
>
>I have defined a class in a .prg, the class has some methods.
>In one of the methods there are some RETURN statements and all of them return an integer value like RETURN 1 or RETURN -1 and so on.
>
>But when this function is executed, it allways gives me a .T. as the returnvalue !?
>
>I watched the execution with the debugger and was not able to find the reason.
>When the function reaches a RETURN with any integer value, it returns a .T. !!
>
>Any clues ?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform