Retrieves the specified header of a MMS. If the header is not a string type header, use MmsGetHeader instead.
MmsLib.bdh
MmsGetHeaderString( in hMms : number,
in nHeader : number,
out sValue : string,
in nMaxValue : number optional,
out nCopied : number optional ): boolean;
true if successful
false otherwise
| Parameter | Description |
|---|---|
| hMms | Handle for the MMS, returned by a call to MmsCreateMms. |
| nHeader | One of the following constants:
|
| sValue | Variable that retrieves the value of the specified header. Based on the specified header type, the returned string specifies
one of the following:
|
| nMaxValue | Optional: Maximum length of the string that can be returned. This value must be less than or equal to the size of the string variable sValue. |
| nCopied | Optional: Variable receiving the number of actually copied bytes. |
dcltrans transaction TWap var sData : string(0x10000); nData : number; hMms : number; sFrom : string; begin nData := WapGetContent(sData); MmsCreateMms(hMms); MmsParseMms(hMms, sData, nData, true); MmsGetHeaderString(hMms, MMS_HEADER_From, sFrom); MmsDeleteMms(hMms); print(sFrom); end TWap;