Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement