Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 7,849 of 9,834    |
|    Régis to All    |
|    WriteText et GPV    |
|    15 Oct 06 12:15:06    |
   
   From: regis.dd@club-internet.fr   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca