This member of RFTone Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The ToneCount method returns the number of individual notes within an RFTone object.
VB
nNotes = object.ToneCount ()
VC++
HRESULT hr = object->ToneCount(short *nNotes);
Return Value
nNotes |
The name of the variable for the returned note count. This function will return a -1 if an error occurs. Use RFGetLastError to return the generated error code. |
Remarks
To count the number of notes within a tone file saved to an RF device, first set the tone file as the current RFTone object using the GetToneFile Method, then use the ToneCount method.
Example
See the RFTone Samples.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other