Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little DDE help?
Message
From
16/12/1997 00:48:29
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
 
 
To
15/12/1997 13:03:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00065295
Message ID:
00066117
Views:
51
Hi Erik,

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

I usually test the response from each ddepoke statement. for example:


D = DDEPOKE(ddechan,"generaljournal","date")

IF NOT D
=messagebox('Sending date info to journal not working', 16)
return
ENDIF

At least I can see which line is not working.

I would be surprised that output from vfp date() function would be compatible with peachtree.

Also, I found that double quotes worked better than single quotes. No idea why.

Good luck,

Paul de Niverville

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform