Re: String cast error

2014-06-18 Thread SomeRiz via Digitalmars-d-learn
@Ali Çehreli Thanks I'm test code :) Successfully :) Thank you :)

Re: String cast error

2014-06-18 Thread Ali Çehreli via Digitalmars-d-learn
On 06/18/2014 06:04 PM, SomeRiz wrote: Thanks Teoh I'm trying compile but i get an error: b.d(22): Error: function b.extractSerial (string input) is not callable using ar gument types (ProcessOutput) According to its documentation, executeShell() returns a Tuple consisting of the return stat

Re: String cast error

2014-06-18 Thread SomeRiz via Digitalmars-d-learn
Thanks Teoh I'm trying compile but i get an error: b.d(22): Error: function b.extractSerial (string input) is not callable using ar gument types (ProcessOutput)

Re: String cast error

2014-06-18 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jun 19, 2014 at 12:31:51AM +, SomeRiz via Digitalmars-d-learn wrote: > Hi Justin thank you. > > I'm using > > executeShell(a); > > Output: > > ProcessOutput(0, "SerialNumber\r\r\n92716002 \r\r\n\r\r\n") > > How do I delete ProcessOutPut, 0, SerialNumber, \r,\n text? > > I

Re: String cast error

2014-06-18 Thread SomeRiz via Digitalmars-d-learn
Hi Justin thank you. I'm using executeShell(a); Output: ProcessOutput(0, "SerialNumber\r\r\n92716002 \r\r\n\r\r\n") How do I delete ProcessOutPut, 0, SerialNumber, \r,\n text? I want to see just out: 92716002 Sorry for my bad english :(

Re: String cast error

2014-06-18 Thread Justin Whear via Digitalmars-d-learn
On Thu, 19 Jun 2014 00:05:36 +, SomeRiz wrote: > Hi. > > My code running: > > http://dpaste.dzfl.pl/2183586524df > > Output: > > SerialNumber 927160020 (X = Some Numbers) > > How do I delete "SerialNumber" text? > > Example > > string SomeRiz = system(a); > > I get an error: > > b