Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little DDE help?
Message
De
15/12/1997 13:03:40
 
 
À
15/12/1997 12:04:02
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065295
Message ID:
00065976
Vues:
36
>Hi Erik,
>
>It has been my experience with dde, only a couple of applications, that using the example code within the quotes in a foxpro dde statement has worked. The code within the quotes is the syntax for the server application. The server application (Peachtree) doesn't care if VB or VFP sends it, as long as it is in the syntax it will accept.
>
>Good luck,
>
>Paul de Niverville
>
>>>>>For example in VB (where my only DDE experience lies),
>>>>>I would just set the object's
>>>>>linkitem = "file=generaljournal, field=date"
>>>>>text = "12/10/97"
>>>>>and then POKE it.
>>>>>Well in VFP, DDEPOKE doesn't have a parameter for the file, just the field.
>>>>>
>>I wish that I had the choice to use OLE with Peachtree, but I don't. I have used OLE with a few other apps, and it usually proves to be pretty straightforward.
>>
>>I have read through and through a;ll of the documentation that comes with Peachtree, and like I said, the only examples it gives are with VB. But I already know how to do this with VB, I need to know how to do it with Fox.

Update:
I have found syntax that looks good (doesn't cause errors, gets the proper return codes from Peachtree), but doesn't seem to work.

ddechan = ddeinitiate('peachw','assoftey')
ddepoke(ddechan, 'generaljournal, date', date())
ddepoke(ddechan, 'generaljournal, reference', 'Daily Entry')
ddepoke(ddechan, 'generaljournal, description', 'Payment')
ddepoke(ddechan, 'generaljournal, firstdistribution', '1300' + chr(9) + '150' + chr(9) + 'First detail')
ddepoke(ddechan, 'generaljournal, nextdistribution', '3200' + chr(9) + chr(9) + '150' + chr(9) + 'Second detail')

After running this code, no errors come up, but the entries simply don't appear in Peachtree. I guess that this really crosses the line from a VFP issue, to a Peachtree issue, but I was hoping someone could help anyway. Can anybody sees what I might be doing wrong? TIA
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform