Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying window in the Form
Message
From
27/08/2005 01:53:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Displaying window in the Form
Miscellaneous
Thread ID:
01044495
Message ID:
01044495
Views:
56
Hi everybody,
I am trying to display a text file in a window. When I activate this window, it goes hidden behind the application. How can I show this window in the active form? Following is the code I am using
loNewForm = CREATEOBJECT("FORM")
loNewForm.NAME = "View_Wind"
WITH loNewForm
   .CAPTION = "GIV Details"
   .HEIGHT = 300
   .WIDTH = 675
   .FONTNAME = "Courier New"
ENDWITH

loThisform = THISFORM.NAME
ACTIVATE WINDOW View_Wind IN WINDOW (loThisform)

SET CENTURY OFF
STORE "c:\temp\z" + SUBSTR(SYS(3),1,7) TO textfile
REPORT FORM rep31_1 TO FILE (textfile) NOCONSOLE
MODIFY COMMAND (textfile+".txt") IN WINDOW View_Wind NOEDIT 
SET CENTURY ON
RELEASE loNewForm
ERASE (textfile+".txt")
Next
Reply
Map
View

Click here to load this message in the networking platform