Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save to a filename
Message
De
08/12/2006 06:35:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/12/2006 01:01:06
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Divers
Thread ID:
01175949
Message ID:
01176007
Vues:
10
>>> i am saving my xml file manualy, how to done this automatically?
>>>
>>> i save like this:
>>>
>>>result.Save("GRP_2_061208.xml")
>>>
>>>GRP - is the module name
>>>2 - is doc#
>>>061208 - is present date(yy/mm/dd)
>>
>>It seems the concern is to be able to dynamically generate the file name based on three different entities. Is that the case? If yes, could you provide more information? It is not clear exactly on what you are trying to accomplish.
>
>Hi Michel,
>
>thanks for reply, yes i want to generate the filename dynamically.
>
>Dim Lc_mod as string
>Dim Lc_doc as String
>Dim Lc_date as String
>
>Lc_mod = "GRP"
>Lc_doc = .textbox1.text
>Lc_dte = date()
>
>Lc_xmlfile = ?
>
>then how can i create the filename like this "GRP_2_061208.xml" and saving it as xml file like this --
>
>result.Save("GRP_2_061208.xml")
>
>or
>
>result.Save(&Lc_xmlfile)
>
>regards,
>ryan
lc_Dte = DateTime.Now
lc_XMLFile = String.Format("{0}_{1}_{2}.xml", lc_Mod, lc_doc, lc_Dte.ToString("yyMMdd") )
result.Save(lc_XmlFile) 
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform