Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ini vs Registry
Message
 
To
03/06/2002 15:18:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00664057
Message ID:
00664567
Views:
26
StrToFile is a life saver! I don't have to bother with poorly documented Win32API, thanks alot!

matt


>Mike,
>
>Below is the sequence I use in an app to generate an .Ini file. Please note that the .Ini file is actually created by the StrToFile VFP function:
>
>gIniFileString = "[" + gIniSecName + "]"                                                              + Chr (13) + Chr (10) + ;
>                                                                                                        Chr (13) + Chr (10) + ;
>                 "Login         = " + IIf   (           gTipoLogin     = "A", "Automatico", "Manual") + Chr (13) + Chr (10) + ;
>                 "CargaArquivos = " + IIf   (           gCargaArquivos = "A", "Automatica", "Manual") + Chr (13) + Chr (10) + ;
>                 "ItensNoPedido = " + lTrim (Transform (gItensNoPedido, "999999"))                    + Chr (13) + Chr (10) + ;
>                 "AGCOnetDir    = " +                   gAGCOnetDir                                   + Chr (13) + Chr (10) + ;
>                 "EnviaDir      = " +                   gEnviaDir                                     + Chr (13) + Chr (10) + ;
>                 "RecebeDir     = " +                   gRecebeDir                                    + Chr (13) + Chr (10) + ;
>                 "AprovaDir     = " +                   gAprovaDir                                    + Chr (13) + Chr (10) + ;
>                 "Comunica      = " +                   gStartDir      + "Comunica.Exe"
>
> StrToFile  (gIniFileString, AddBS (gStartDir) + gIniFileName)  && Creates the .Ini file
>
>
>Hope it helps,
>
>Fernando
Previous
Reply
Map
View

Click here to load this message in the networking platform