PlayTone Method

This member of RFTone Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The PlayTone method plays a tone file saved on an RF device.

VB

bStatus = object.PlayTone (pszFileName)

VC++

HRESULT hr = object->PlayTone(LPCTSTR pszFileName, BOOL *bStatus);

Return Value

bStatus

The status of the function returned as Boolean True or False values. Use the RFGetLastError method to return the error value.

Parameters

pszFileName

The name of the tone file stored on the RF device that you wish to play.

Remarks

RFTone objects must be saved as tone files on an RF device using the StoreTone Method BEFORE they may be played.

Example

' VB Sample Code
Dim wlTone As New RFTONE.
.
.
wlTone.ClearTones
wlTone.AddTone 440, 200
wlTone.AddTone 440, 200
If wlTone.StoreTones ("ErrorBeep") = False Then
GoTo ExitApp
End If
.
.
.
' play the tone
wlTone.PlayTone "ErrorBeep"

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal