Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check which procedure or routine called Access method
Message
De
02/05/2021 12:09:30
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01679909
Message ID:
01680104
Vues:
50
J'aime (1)
>>Try PROGRAM() or ASTACKINFO()
>>
>
>Hi Lutz,
>
>Getting back to this thread. You recommended to use ASTACKINFO(). Now I am trying to implement it.
>But I only want to get the last routine that was called before ASTACKINFO(). Does it mean that I would need to access the array element equal to the total number of elements? For example:
>
>ASTACKINFO(aStackArray)
>?  aStackArray[alen(aStackArray,1),1)  && Program
>?  aStackArray[alen(aStackArray,1),2)  && Module
>
>
>Am I on the right track?
>
>TIA

Hi Dimitry,

In general, yes.
Depending on your style of programming this approach - but I guess you need the caller of your access_ method, so
ASTACKINFO(aStackArray)
?  aStackArray[alen(aStackArray,1)-1,1)  && Program
?  aStackArray[alen(aStackArray,1)-1,2)  && Module
or, for the lazy ones like me
LOCAL;
 lnLevel

lnLevel =  ASTACKINFO(aStackArray)-1 &&Level calling your ACCESS_
?  aStackArray[m.lnLevel,1)  && Program 
?  aStackArray[m.lnLevel,2)  && Module
HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform