Re: Passing by VALUE / CStr equivalent
- From: S Bans <SBans@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Dec 2008 01:10:19 -0800
Hello Mark,
Please accept my thanks for your suggestion.
So far as I am getting impression is that this code is not returning any
value. Rather it is storing the value 64 to some property/parameter of some
routine.
I will look forward to any further guidance in this regard.
With Regards
S Bans
"Mark Burgum" wrote:
i think what you need to do is.
m.retval = Analysis1.Filter(0,"watchlist")
that way whatever value this function returns is placed in retval
"S Bans" <SBans@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7AF21C40-A377-468F-A798-9B9544267730@xxxxxxxxxxxxxxxx
Hello friends,
In our of my Visual foxPro (Ver 8) codes I am using OLE Automation to Run
another program. Definition of a property of One of the objects is as
follows
:
Property Filter(ByVal nType As Integer, ByVal pszCategory As String) As
Long
[r/w]
The code I used to implement contained the following line :
Analysis1.Filter(0,"watchlist") = 64
I get error "Function Argument value, type or count is invalid"
The support department of the application suggests that :
we must take attention to pass the watch list name BY VALUE.
Consult the manual for Foxpro how to pass BY VALUE.
In Visual Basic for example the function CStr is used for that purpose:
Analysis1.Filter(0,CStr("watchlist")) = 64
I am looking forward to guidance of seniors to implement this thing in VFP
code. Please do guide if I have put my question appropriately or do I need
to
present more of my code here. I have posted only the problem line here so
as
not to confuse matters. Otherwise my code is working fine. Please accept
my
thanks in advance.
With Regards
S Bans
- Follow-Ups:
- Re: Passing by VALUE / CStr equivalent
- From: Mark Burgum
- Re: Passing by VALUE / CStr equivalent
- References:
- Passing by VALUE / CStr equivalent
- From: S Bans
- Re: Passing by VALUE / CStr equivalent
- From: Mark Burgum
- Passing by VALUE / CStr equivalent
- Prev by Date: Re: Not enough memory
- Next by Date: Re: Passing by VALUE / CStr equivalent
- Previous by thread: Re: Passing by VALUE / CStr equivalent
- Next by thread: Re: Passing by VALUE / CStr equivalent
- Index(es):
Relevant Pages
|