inputText as string = File.ReadAllText(inputFileDialog.FileName)
re as Regex = Regex("\'([0-9]{16})\', \'(.*?)\', \'(.*?)\'")
mc as MatchCollection = re.Matches(inputText)
for mt as Match in mc:
print mt.ToString()
and this code don't work :( i see error: unexpected char: '''.
(BCE0044)
partial class MainForm:
def constructor():
// The InitializeComponent() call is required for Windows
Forms designer support.
InitializeComponent()
private def BtnBrowseClick(sender as object, e as
System.EventArgs):
if inputFileDialog.ShowDialog() == DialogResult.OK:
txtPath.Text = inputFileDialog.FileName
private def BtnConvertClick(sender as object, e as
System.EventArgs):
inputText as string = File.ReadAllText
(inputFileDialog.FileName)
re as Regex = regex("'([0-9]{16})', '(.*?)', '(.*?)'")
mc as MatchCollection = re.Matches(inputText)
for mt as Match in mc:
print mt.ToString()
[STAThread]
def Main(argv as (string)):
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(false)
Application.Run(MainForm())
On 2 июл, 18:49, Cedric Vivier <cedr...@neonux.com> wrote:
> partial class MainForm:
> def constructor():
> // The InitializeComponent() call is required for Windows
> Forms designer support.
> InitializeComponent()
> private def BtnBrowseClick(sender as object, e as
> System.EventArgs):
> if inputFileDialog.ShowDialog() == DialogResult.OK:
> txtPath.Text = inputFileDialog.FileName
> private def BtnConvertClick(sender as object, e as
> System.EventArgs):
> inputText as string = File.ReadAllText
> (inputFileDialog.FileName)
> re as Regex = regex("'([0-9]{16})', '(.*?)', '(.*?)'")
> mc as MatchCollection = re.Matches(inputText)
> for mt as Match in mc:
> print mt.ToString()
On Fri, Jul 3, 2009 at 3:29 AM, any <anyn...@gmail.com> wrote:
> no ideas? :(
> On 2 июл, 18:56, any <anyn...@gmail.com> wrote:
> > mmm... very strange. in this code 5 errors... i write in sharpdevelop.
> > here is the full code:
> > partial class MainForm:
> > def constructor():
> > // The InitializeComponent() call is required for Windows
> > Forms designer support.
> > InitializeComponent()
> > private def BtnBrowseClick(sender as object, e as
> > System.EventArgs):
> > if inputFileDialog.ShowDialog() == DialogResult.OK:
> > txtPath.Text = inputFileDialog.FileName
> > private def BtnConvertClick(sender as object, e as
> > System.EventArgs):
> > inputText as string = File.ReadAllText
> > (inputFileDialog.FileName)
> > re as Regex = regex("'([0-9]{16})', '(.*?)', '(.*?)'")
> > mc as MatchCollection = re.Matches(inputText)
> > for mt as Match in mc:
> > print mt.ToString()