General information
Category:
Windows API functions
>Another one...
>
>Extracted from the the help file:
>
>WORD DPICreateTiers( HSOC hSociete,
> LPSTR szCompte,
> LPSTR szIntitule,
> WORD wfAttributes,
> LPSTR szBudget,
> LPSTR szTiers,
> LPSTR szAd1,
> LPSTR szAd2,
> LPSTR szAd3,
> LPSTR szCodePost,
> LPSTR szVille,
> LPSTR szTel,
> LPSTR szFax,
> LPSTR szReglem,
> LPSTR szBanque);
>
>
>Paramètres
>hSoc handle de la société. Ce handle est renvoyé par DPIOpenSociete.
>szCompte numéro du compte (cf. test sur les numéros de comptes)
>szIntitulé intitulé du compte
>wfAttributes attributs du compte
> DPICPT_LETTRABLE compte lettrable
> DPICPT_UTILISABLE compte utilisable
> DPICPT_ECHEANCE saisie de date déchéance
> DPICPT_POINTAGE saisie de numéro de pointage
> DPICPT_QUANTITE saisie de quantité
> ces valeurs sont cumulable par un OU (translation: these values are cumulable by an OR)
>
>szBudget budget
>szTiers nom du tiers
>szAd1 adresse 1
>szAd2 adresse 2
>szAd3 adresse 3
>szCodePost code postal
>szVille ville
>szTel numéro de téléphone
>szFax numéro de fax
>szReglem mode de règlement
>szBanque nom de la banque
>
>
>Valeurs de retour
>Code derreur
>
>Remarques
>szBudget, sztiers, szAd1, szAd2, szAd3, szCodePost, szVille, szTel, szFax,
>szReglem et szBanque peuvent être NULL ou vides.
>
>
>// types de comptes Value I want in this field
>#define DPICPT_LETTRABLE 0x0001 1
>#define DPICPT_UTILISABLE 0x0002 1
>#define DPICPT_ECHEANCE 0x0004 1
>#define DPICPT_POINTAGE 0x0008 1
>#define DPICPT_QUANTITE 0x0010 0
>
>I have this function running well, except for the wfAttributes part, for which I don't how to cumulate the values.
>Question: What value should I pass to wfAttributes to get the 5 following fields defined as I want?
>
>José
I forgot to say in the other message: you must declare the word parameter as INTEGER in VFP. (This is a general rule, not only for this function.)
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only