Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding to changes in a SETting?
Message
De
04/08/2006 17:01:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01143070
Message ID:
01143087
Vues:
9
>I created a menu for my department which called various utilities. It worked well.
>
>Then I got fancy, and decided to have the menu options call a procedure to call the utilities, rather than call the utilities themselves. That decision was... not so solid.
>
>Some of these utilities do a SET PROCEDURE TO in the middle, which promptly blows away the menu's reference to its own procedure.
>
>As a workaround, I have a "reset-SET-procedure" menu item, which doesn't go through the procedure. However, I'd like to figure out a way to have the menu see changes in SET("Procedure") and add itself back in.
>
>I was going to try something elaborate involving a textbox added to the screen with ControlSource='SET("Procedure")', its assign method, and BINDEVENTS, but that fell by the wayside when I discovered I couldn't make a function call a ControlSource.
>
>Has anybody actually pulled something like this off? :-)

Garret,
A little confusing:) I don't see how would setting controlsource to set('procedure') help but you can set controlsource to a function. Surround it with parentheses.

Isn't checking "MYPROCEDURE"$set("procedure") easier? Or do ... in ...?
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