![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The writeText method produces a GPV with a french Paradox version. Try this (the sample method included in P10)... test.txt is an empty file and the method produces a GPV. Can you confirm this with an English version and do you have an explanation for this. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Do you have an empty *.txt file too ? |
#5
| |||
| |||
|
|
test.txt is an empty file and the method produces a GPV. Can you confirm this with an English version and do you have an explanation for this. |
|
The question is more about why the GPV yhan how to use writeText. (Obviously, make the test with an axisting form of your working directory) |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
A problem from Michel, in a french NG. The writeText method produces a GPV with a french Paradox version. Try this (the sample method included in P10) method pushButton(var eventInfo Event) var f form endvar if not f.open("BIOLIFE") then ; attempts to open Biolife.fsl. If not successful, alerts t ; the user and returns to the form msginfo("stop","could not open Biolife form") return endif f.attach("BIOLIFE") ; attaches form variable to biolife.fsl f.writetext(":WORK:test.txt") ; writes the displayed contents of biolife.fsl to the file test.txt f.close() ; closes biolife.fsl endMethod test.txt is an empty file and the method produces a GPV. Can you confirm this with an English version and do you have an explanation for this. The question is more about why the GPV yhan how to use writeText. (Obviously, make the test with an axisting form of your working directory) Régis |
#8
| |||
| |||
|
|
Régis, In Pdox 9, I had no trouble. However, what happens if you open the Form using the WinStyleDefault+WinStyleHidden Parameters? (see below) Below is the code I tested: ;//=== Begin ;------------------------ Var f Form strCurrentDir String endVar ;<------------------------ strCurrentDir = cpCurrentDir() ;//- returns my current directory if f.open(strCurrentDir + "\\Sample.fsl", WinStyleDefault+WinStyleHidden) then ; if f.open(strCurrentDir + "\\Sample.fsl") then ;//- <--- this worked also f.writetext(":PRIV:test.txt") sleep() ;//- I added this sleep() f.close() endif ;//=== End -- ... `·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney |
#9
| |||
| |||
|
|
Régis This is documented in my Docissues document. ObjectPAL - Form type - writeText() -- Bertil Isberg - CTECH Paradox buglist: online: http://hem.bredband.net/bertilisberg/ "Régis" <regis.dd (AT) club-internet (DOT) fr> skrev i meddelandet news:45320a2e (AT) pnews (DOT) thedbcommunity.com... A problem from Michel, in a french NG. The writeText method produces a GPV with a french Paradox version. Try this (the sample method included in P10) method pushButton(var eventInfo Event) var f form endvar if not f.open("BIOLIFE") then ; attempts to open Biolife.fsl. If not successful, alerts t ; the user and returns to the form msginfo("stop","could not open Biolife form") return endif f.attach("BIOLIFE") ; attaches form variable to biolife.fsl f.writetext(":WORK:test.txt") ; writes the displayed contents of biolife.fsl to the file test.txt f.close() ; closes biolife.fsl endMethod test.txt is an empty file and the method produces a GPV. Can you confirm this with an English version and do you have an explanation for this. The question is more about why the GPV yhan how to use writeText. (Obviously, make the test with an axisting form of your working directory) Régis |
#10
| |||
| |||
|
|
Thanks Bertil, As usual, before asking, it is better to read your documentation and bug list. Just a little point, you refer to version 11, build 300, and that exists in P10, too Régis |
![]() |
| Thread Tools | |
| Display Modes | |
| |