Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why bad value is returned ?
Message
De
08/05/2006 13:14:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/05/2006 13:02:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows Server 2003
Divers
Thread ID:
01120078
Message ID:
01120086
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
>I don't understand what happens here. My test function should return false. Why I got a true?
>
>x = CREATEOBJECT("dataaccesslayer.cAccessTablesDBF")
>?x.fxGetTableXML()
>&& x returns "wrong", it should return "right"
>
>
>DEFINE CLASS cAccessTablesDBF AS session OLEPUBLIC
>
>FUNCTION test() as Boolean
>RETURN .f.
>ENDFUNC
>
>FUNCTION fxGetTableXML() as String
>IF test()
>? "wrong"
>ELSE
>? "right"
>ENDIF
>ENDFUNC
>
>ENDDEFINE

Marc,
Did you mean:

IF THIS.test()
? "wrong"
ELSE
? "right"
ENDIF

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform