Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables passed by reference
Message
De
15/04/2000 23:47:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00360010
Message ID:
00360101
Vues:
9
Try these small changes:
loForm = CREATE("TestForm", "John Q. Public") &&Not by refereence
loForm.SHOW(1)
wait window loForm.cReturn
loForm.Release()

DEFINE CLASS TestForm AS Form
  cReturn = ""

  PROCEDURE INIT
    LPARAMETER p1
    this.cReturn = p1
    this.txt1.controlsource = "thisform.cReturn"
  ENDPROC

  proc QueryUnload
     this.hide()
     nodefault
  endproc
  ADD OBJECT txt1 AS TextBox
ENDDEFINE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform