Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intellisense for parameters used in PROCs?
Message
De
19/03/2005 07:25:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/03/2005 13:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00997213
Message ID:
00997563
Vues:
11
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform