SetFrequency Method

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

The SetFrequency method lets you alter the frequency for an existing tone within an RFTone object.

VB

bStatus = object.SetFrequency (nFrequency, nTone)

VC++

HRESULT hr = object->SetFrequency(short nFrequency, 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

nFrequency

The new frequency for the existing tone, as defined in numeric hertz.

nTone

The zero based index value note that's frequency is being altered. Note, the first note in the list is indexed as zero. For example, to alter the frequency for the third note in the current RFTone object you would pass 2.

Remarks

To alter a frequency 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 SetFrequency.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal