Very Novice here.

Getting this error message within Visual FoxPro program.

Error number: 11Error message: Function argument value, type, or count is
invalid.Line of code with error: IF "TEST" $ UPPER(pcParams)Line number of
error: 175Program with error: CREATE_INC_EXPORT

Can someone help me???

I see the attribute pcParams defined. The line of code for that is...

LPARAMETERS pcParams

Also, does anyone have any suggestions for training and/or reading material
for novice FoxPro???

Thanks in advance for your help and consideration.

PSULionRP

Re: Novice Error by Dan

Dan
Thu Mar 06 12:11:09 CST 2008

The variable pcParams *must* be a character string because of the way you're
using it. The error message is telling you it isn't.

Either you're passing another data type to the program, or you're not
passing anything at all and it's defaulting to logical .f.

A good beginner's reference is here:
http://www.hentzenwerke.com/catalog/fund6.htm

Dan


PSULionRP wrote:
> Very Novice here.
>
> Getting this error message within Visual FoxPro program.
>
> Error number: 11Error message: Function argument value, type, or
> count is invalid.Line of code with error: IF "TEST" $
> UPPER(pcParams)Line number of error: 175Program with error:
> CREATE_INC_EXPORT
>
> Can someone help me???
>
> I see the attribute pcParams defined. The line of code for that is...
>
> LPARAMETERS pcParams
>
> Also, does anyone have any suggestions for training and/or reading
> material for novice FoxPro???
>
> Thanks in advance for your help and consideration.
>
> PSULionRP



Re: Novice Error by PSULionRP

PSULionRP
Thu Mar 06 13:46:03 CST 2008

How do I pass data to the parameter.

Thanks for your previous reply and like I said, I'm a novice here to FoxPro.
I have pretty extensive CICS background.

Thanks again.

"Dan Freeman" wrote:

> The variable pcParams *must* be a character string because of the way you're
> using it. The error message is telling you it isn't.
>
> Either you're passing another data type to the program, or you're not
> passing anything at all and it's defaulting to logical .f.
>
> A good beginner's reference is here:
> http://www.hentzenwerke.com/catalog/fund6.htm
>
> Dan
>
>
> PSULionRP wrote:
> > Very Novice here.
> >
> > Getting this error message within Visual FoxPro program.
> >
> > Error number: 11Error message: Function argument value, type, or
> > count is invalid.Line of code with error: IF "TEST" $
> > UPPER(pcParams)Line number of error: 175Program with error:
> > CREATE_INC_EXPORT
> >
> > Can someone help me???
> >
> > I see the attribute pcParams defined. The line of code for that is...
> >
> > LPARAMETERS pcParams
> >
> > Also, does anyone have any suggestions for training and/or reading
> > material for novice FoxPro???
> >
> > Thanks in advance for your help and consideration.
> >
> > PSULionRP
>
>
>

Re: Novice Error by Dan

Dan
Thu Mar 06 14:01:49 CST 2008

Short answer:

Do yourprogram WITH "your parameter"

This is in the help file. :-) Do a search for the topic titled "Procedures
and User-Defined Functions" which has a much better description than I could
provide in a newsgroup post.

Dan

PSULionRP wrote:
> How do I pass data to the parameter.
>
> Thanks for your previous reply and like I said, I'm a novice here to
> FoxPro. I have pretty extensive CICS background.
>
> Thanks again.
>
> "Dan Freeman" wrote:
>
>> The variable pcParams *must* be a character string because of the
>> way you're using it. The error message is telling you it isn't.
>>
>> Either you're passing another data type to the program, or you're not
>> passing anything at all and it's defaulting to logical .f.
>>
>> A good beginner's reference is here:
>> http://www.hentzenwerke.com/catalog/fund6.htm
>>
>> Dan
>>
>>
>> PSULionRP wrote:
>>> Very Novice here.
>>>
>>> Getting this error message within Visual FoxPro program.
>>>
>>> Error number: 11Error message: Function argument value, type, or
>>> count is invalid.Line of code with error: IF "TEST" $
>>> UPPER(pcParams)Line number of error: 175Program with error:
>>> CREATE_INC_EXPORT
>>>
>>> Can someone help me???
>>>
>>> I see the attribute pcParams defined. The line of code for that
>>> is...
>>>
>>> LPARAMETERS pcParams
>>>
>>> Also, does anyone have any suggestions for training and/or reading
>>> material for novice FoxPro???
>>>
>>> Thanks in advance for your help and consideration.
>>>
>>> PSULionRP



Re: Novice Error by Stefan

Stefan
Thu Mar 06 14:05:58 CST 2008


"PSULionRP" <PSULionRP@discussions.microsoft.com> wrote in message
news:7D4185C4-EA17-4515-B319-E1D11417AF39@microsoft.com...
> How do I pass data to the parameter.

When the method/function/procedure gets called somewhere
in your code, the data would get sent - for example
Do myProcedure With "the string"

or
Local parametervariable, returnValue
parametervariable = "the string"
returnValue = myFunction(m.parametervariable)

or
Thisform.myMethod("the string")



hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


Re: Novice Error by RandyBosma

RandyBosma
Fri Mar 07 14:55:12 CST 2008

You can figure out what the value of pcParams is by using the debugger, and
that will lead you to a solution. Here's a link to an article at Tamar
Granor's website that will get you started with this valuable tool:
http://www.tomorrowssolutionsllc.com/Materials/debugger.html
Enjoy!

PSULionRP wrote:
>Very Novice here.
>
>Getting this error message within Visual FoxPro program.
>
>Error number: 11Error message: Function argument value, type, or count is
>invalid.Line of code with error: IF "TEST" $ UPPER(pcParams)Line number of
>error: 175Program with error: CREATE_INC_EXPORT
>
>Can someone help me???
>
>I see the attribute pcParams defined. The line of code for that is...
>
>LPARAMETERS pcParams
>
>Also, does anyone have any suggestions for training and/or reading material
>for novice FoxPro???
>
>Thanks in advance for your help and consideration.
>
>PSULionRP

--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200803/1