Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ToolBox Question
Message
De
28/05/2009 15:41:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01402450
Message ID:
01402537
Vues:
39
>Ok, I figured out how to get the name of Program/Method/Window that is the target of my Text Snippet drop from the ToolBox.
>
>MWINDOW().
>
>Now, Is there any way to execute code in a text snippet? For example, if I want to assign a variable using INPUTBOX() and then test to see if it is empty...

You'll be better off creating an intellisense script for that... here's what I have:
LPARAMETER oFoxCode
local lcs
sd=set("date")
set date ymd
set cent on
lcIncl="Include\Appl.h"
do case
	case atc("dum",curd())>0
		lcIncl="other\fw.h"
	case atc("apvfp",curd())>0
		lcIncl="GenerAll.h"
*-- etc etc, set it to include the proper one for the current type of projectds
endcase
	
text to lcs noshow textmerge
***
***	<<justfname(oFoxcode.Filename)>>
***

* 	<<datetime()>>
* 	<<version()>>

#include <<lcIncl>>

***
*** ----------------------------------
***
~
endtext
oFoxCode.ValueType="V"
set date &sd
return lcs
Of course, you can add your own stuff to this and accommodate whichever specifics you may have.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform