Re: Converting a string
Ron Chibnik <[email protected]> Fri, 7 Sep 2007 10:01:11 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <004501c7f157$8c2c22e0$a48468a0$@com> |
You don't say if every command starts with chr(27) which is Escape, and is followed by chr(13) Chr(10) which is carriage return line feed. If so, I would store only the command in the database (which looks like "P" with the quotes) and write a method Send-Command which sends the escape sequence. This way you are not storing special characters in the database. The escape sequence could be stored in a property file somewhere, in case it should change.