Retrieves the specified header of a MMS. If the header is not a number type header, use MmsGetHeaderString instead.
MmsLib.bdh
MmsGetHeader( in hMms : number, in nHeader : number, out nValue : number ): 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:
|
nValue | Variable that retrieves the value of the specified header. Based on the specified header type, one of the following values
is used:
|
dcltrans transaction TWap var sData : string(0x10000); nData : number; hMms : number; nStatus : number; begin nData := WapGetContent(sData); MmsCreateMms(hMms); MmsParseMms(hMms, sData, nData, true); MmsGetHeader(hMms, MMS_HEADER_ResponseStatus, nStatus); MmsDeleteMms(hMms); print(string(nStatus)); end TWap;