Developer technologies | VB
An object-oriented programming language developed by Microsoft that can be used in .NET.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
when i create json files(100 files) in visual studio it's starting from 1-100. however, i want to start file number format from 201-300, 301-400 like that. how can i change the json number format in visual studio code?
Hi
Are you talking about the file names such as File1.json, File2.json etc ..............
If so then check this out (this is an over simplified example)
' start file numbering at:
Dim filenumb As Integer = 200
' folder name (path)
Dim path As String = IO.Path.Combine(Application.StartupPath, "MyPath")
' folder doesn't exist then create it
If Not IO.Directory.Exists(path) Then IO.Directory.CreateDirectory(path)
Dim filename As String = IO.Path.Combine(path, "File" & filenumb.ToString & ".json")
' filename = File200.json
filenumb += 1
filename = IO.Path.Combine(path, "File" & filenumb.ToString & ".json")
' filename = File201.json
filenumb += 1
filename = IO.Path.Combine(path, "File" & filenumb.ToString & ".json")
' filename = File202.json