Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PEMSTATUS() Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827554
Message ID:
00827604
Vues:
19
I'm testing your code and I'm seeing the object passad to the CLASS or DLL are not received correctly.
What's wrong? AMEMBERS is returning 0

>>>Yes, it does, and thats what I did instead. But I'm just
>>curious as to why PEMSTATUS fails.
>>
>>Can you post a snippet of your code?

>I've been playing with this, and this code snippet shows the issue he brought up.

>add this to a project 'recobj' and build the dll, then run the code.
loT = CREATEOBJECT('empty')
ADDPROPERTY(loT,'Name','OLE Test')

DELETE FILE 'c:\members.txt'
loM = CREATEOBJECT("recobj.members") && DLL name . class name
loM.TestMembers(loT)
loM = NULL

ADDPROPERTY(loT,'Name','PRG Test')
loM = CREATEOBJECT('members')
loM.TestMembers(loT)

MODIFY FILE 'c:\members.txt'

DEFINE CLASS members AS Custom OLEPUBLIC
   PROCEDURE TestMembers ( toIn AS Object ) AS Logical 
      LOCAL lnLoop, lcOut
      lcOut = TTOC(DATETIME()) + CHR(13)+CHR(10)
      FOR lnLoop = 1 TO AMEMBERS(laMem, toIn, 3)
         lcOut = lcOut + laMem[lnLoop, 1] + ',' + laMem[lnLoop, 2] + CHR(13) + CHR(10)
      NEXT
      IF TYPE('toIn.Name') = 'C'
         lcOut = lcOut + toIn.Name + CHR(13) + CHR(10)
      ENDIF
      STRTOFILE(lcOut, 'c:\members.txt', 1)
   ENDPROC
ENDDEFINE
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform