Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intellisense for parameters used in PROCs?
Message
From
19/03/2005 10:19:41
 
 
To
19/03/2005 10:09:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00997213
Message ID:
00997583
Views:
12
Cetin --

Thanks for all your help, but I think that this will be too much switching back and forth for me ... the benefit isn't worth all the effort.

Thanks anyway,

Jim


>Set proc wouldn't help (keep it) but add local x ... for intellisense. When you're done you'd comment them (and remove x. from code).
>Cetin
>
>>I tried that, to no effect. I inserted those two lines into my PROC, one at the beginning and one at the end. The PROC is in my SET PROC list.
>>
>>Now what? Nothing happens.
>>
>>Jim
>>
>>>Jim,
>>>But still you can utilize it. During development temporarily add:
>>>
>>>define class myProcs as custom
>>>* procedures
>>>enddefine
>>>
>>>to your procs. prg. When done you could simply comment those two lines.
>>>Cetin
>>>
>>>>And I take it by your reply that Intellisense doesn't apply to PROCs within a PRG.
>>>>
>>>>Ah, well, it was a nice thought / Jim
>>>>
>>>>
>>>>>Oh you mean it was a single prg with Procedure(s) in it. I got it wrong then.
>>>>>Cetin
>>>>>
>>>>>
>>>>>>Cetin --
>>>>>>
>>>>>>While this looks valuable (and is presumably preferable to using PRGs with multiple PROCs?), it doesn't help much with my current applications which use PRGs with PROCs. I was just hoping intellisense could help me in some way (without requiring me to re-structure the existing application -- I'd need a stronger reason than this to do so.)
>>>>>>
>>>>>>Jim
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>* MyClassLib.Prg
>>>>>>>define class myClass as custom
>>>>>>>procedure myProc
>>>>>>>lparameters p1 as string, p2 as integer
>>>>>>>endproc
>>>>>>>enddefine
>>>>>>>
>>>>>>>
>>>>>>>In any code window (or command):
>>>>>>>
>>>>>>>
>>>>>>>local x as "myClass" of "myClasslib.prg"
>>>>>>>*x = NewObject("myClass","myClasslib.prg") && My preference over set proc
>>>>>>>*with or w/o writing NewObject(), CreateObject() intellisense is in effect
>>>>>>>x. && PEM list
>>>>>>>x.myProc( && Param list
>>>>>>>
>>>>>>>Cetin
>>>>>>>
>>>>>>>>Cetin ...
>>>>>>>>
>>>>>>>>Something I'm missing here ... I have a PRG named StdProcs.PRG. It's in my SET PROC list. Using your suggestion, I can't seem to get anything from intellisense, either in the command window, or in a PRG.
>>>>>>>>
>>>>>>>>Where am I supposed to put the first line of text you suggested? (It looks completely unfamiliar to me.)
>>>>>>>>
>>>>>>>>Thanks
>>>>>>>>
>>>>>>>>Jim
>>>>>>>>
>>>>>>>>>>Is there a way to get Intellisense to remind me of the parameters to procedures defined in a PRG which is in my "SET PROC" list? (the same way that it will for methods when I do something like
thisform.myMethod(
>>>>>>>>>>Thanks
>>>>>>>>>>Jim
>>>>>>>>>
>>>>>>>>>local x as 'class' of 'classlib.prg'
>>>>>>>>>x.myProc(
>>>>>>>>>
>>>>>>>>>Cetin
Jim Nelson
Newbury Park, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform