Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little DDE help?
Message
From
16/12/1997 09:34:38
 
 
To
16/12/1997 00:48:29
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00065295
Message ID:
00066202
Views:
49
>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 worked out all of these commands from the command window, and after each one checked the variable that I assigned the statement to (like your example.) All of the lines returned .T.. The DDE window showed an Ok for each one. I even screwed up the syntax or file name on a couple of them to check to see if Peachtree was even checking, and sure enough, it did return errors for the intetionally broken code.

I would be surprised that output from vfp date() function would be compatible with peachtree.
>
You're right. My actual code was "12/15/97". I was trying to reproduce that line from memory and wrote date() from habit.


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

I'll give that a shot to see if it makes any difference. Thanks for your help.

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

Click here to load this message in the networking platform