Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ini vs Registry
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00664057
Message ID:
00664567
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform