Its depended on how you declare API call. When you used integer for parameter, than sure the problem not in VFP because VFP integer (and API integer) is 32-bit value. So, seems API function you call do not allow values greater than 32767 (the greatest positive short integer).
What is li_intval?
>I am making a call to an API that is on SQL SERVER 7.0 and when I pass my parameters, I get an OLE error: Out of Present Range. The parameters I am passing are:
>
>A begining date (character type)
>An Ending Date (character type)
>An Integer as a unique id.
>
>Here is my thing, the value that is in my Integer variable (li_intval) is 67750. But when I change it to anything under 31000, it actually works fine. This also happens when I change the variable to a Numeric data type with the same value.
>
>What could be happening? What is the syntax for making a variable an integer?
>
>I am sorry if this questions makes no sense, the actual issue makes no sense to me as well.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.