VFP7pass short to an ext. method - TechRepublic
General discussion
March 18, 2004 at 02:51 PM
wlhs

VFP7pass short to an ext. method

by wlhs . Updated 22 years, 3 months ago

I am writing code behind a command button on a Visual Fox 7.0 form.

I am calling methods from an ActiveX control on my for as follows:
objPresort = CREATEOBJECT(“PresortAgent.PresortAgentCtrl.1”)
@tableAlias = ALIAS()
nSortOption = -1
recordCount =100
nResult = objPresort.BeginPresortProcessing(@tableAlias, recordCount , @nSortOption)

The definition for this Method is BeginPresortProcessing(string by reference, long by value , short by reference)

Everytime I try to call this I get a type mismatch becaus eVFP is converting my nSortOption to a different type of variable.

Does anyone have any suggestions as to how I can force this to a Short or an Integer???

Thanks!!

This discussion is locked

All Comments