TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: RENAUD MAVRE
from: CY WELCH
date: 1996-10-22 17:55:00
subject: Writing INI in VFP

Hello Renaud!
Friday October 11 1996 17:29, Renaud MAVRE wrote to All:
 RM> Can anyone help me, please ?
 RM> Several months ago, I released in this echo a little function which
 RM> allows to write to an INI file. In the code, I use the "foxtools.fll"
 RM> and the "regfn" statement.
 RM> I frequently use this function in FPW 2.x with no problem at all.
 RM> Yesterday I wanted to reuse it in VFP but now I get an error message
 RM> on the "regfn" line.
 RM> The text of the message is approximately "Bad value returned"
 RM> (translation of the french sentence "Mauvaise valeur renvoyee").
 RM> Unfortunately, this message is note quoted in the help file :-(
 RM> Here is the function once more :
Yeah, they changed how all that works now.  There is no TYPE "B" anymore.  
Take a look at foxtools.wri that came with VFP for the proper calls.
 RM> ERROR >>>> iniputstr = regfn("WritePrivateProfileString","CCCC","B")
The valid types are:
                    I        Integer (32 bit)
                    L        Long
                    C        String of Characters
                    F        Floating Point Number
                    D        Double precision floating point number
                    S        Short (16-bit)integer
Cy
Internet: Cy.Welch@pmra.gigo.com
          cwelch@calweb.com
Web Page: http:/www.calweb.com/~cwelch/
FTP  DIR: ftp:/ftp.calweb.com /users/c/cwelch/
... There were computers in Biblical times. Eve had an Apple.
--- GoldED/386 2.50+
---------------
* Origin: PMRA Tech Support 916-448-5376 (FIDONET 1:203/123)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.