Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A silly question
Message
De
18/06/2004 09:03:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00914877
Message ID:
00914986
Vues:
9
Sorry, I am afraid I didn't finish reading your message when I first replied.

When you open a form, you can't access it directly by the form name (as in the .Name property).

From within a form, you can access its properties with ThisForm, for example:
ThisForm.Caption = "This is a form"
To be able to refer to a form from outside, you can open a form with:
local loMyForm
do form MyForm name loMyForm

or:

do form MyForm name loMyForm linked
Then, you can use the variable loMyForm to access the form's properties.
loMyForm.Caption = "Form controlled from outside"
>Hi,
>
>This might be silly, but I have been out of touch in FP for sometime and thi small thing bothers me.
>
>I am trying to have a small messagebox or some sort of box indicate the status of the program at various times (maybe on a successful login, loading in files, searching for info).. I want a status box.
>
>I am trying to figure if messagebox() can help me, but I dont want the user to press ok or cancel..it should be just FYI.
>
>I also can use a form with a text box in it, which will have a variable X as its control source and X is global. So I can put whatever message i need in X and I want to be able to call the form so that the box pops up wherever I call it with the message I send.
>
>Now whenever I am calling statusform.show, It throws me a message object not found. Am I missing something really basic ? Or have I forgotten the way fox works ? Please help by giving some ideas as to display the status (other than wait window nowait)
>
>thanks
>
>dinesh
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform