SetDuration Method

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

The SetDuration method lets you alter the duration for an existing note within an RFTone object.

VB

bStatus = object.SetDuration (nDuration, nTone)

VC++

HRESULT hr = object->SetDuration(short nDuration, short nTone, 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

nDuration

The new duration for the selected note, measured in milliseconds.

nTone

The zero based index value note whose duration is to be altered. Remember, the first note in the list is indexed as zero. For example, to alter the duration for the third note in the current RFTone object you would pass a 2.

Remarks

To alter the duration for a note stored within a tone file on an RF device, first use the GetToneFile Method to set the tone file as the current tone object within the application, then use SetDuration.

Example

See the RFTone Samples.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal