Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ini vs Registry
Message
From
03/06/2002 15:18:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00664057
Message ID:
00664229
Views:
29
This message has been marked as the solution to the initial question of the thread.
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
Next
Reply
Map
View

Click here to load this message in the networking platform