Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables passed by reference
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00360010
Message ID:
00360101
Views:
7
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
Previous
Reply
Map
View

Click here to load this message in the networking platform