473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

how to convert regexoptions value to chekcboxes

GS
I tried converting regexoptions to bits sp I can do bitwise operation but I
just could not get it going. I tried Google, so far I failed to find the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from database
stored as int and I am trying to represent that in check boxes. converting
int to Regexoptions is easy
Jun 11 '07 #1
6 1703
What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
>I tried converting regexoptions to bits sp I can do bitwise operation but I
just could not get it going. I tried Google, so far I failed to find the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes. converting
int to Regexoptions is easy


Jun 11 '07 #2
GS
Hello Nicholas, I was surprised that I could not find my prev post nor
answer to it. I was it must be a mistake of mine at late Saturday night.

I was searching to my prev post and did not find it: under from: gs. I
tried also by just subject of regexoption. Total posting by me since June 9
is 3 and only today's post is on regexoptions when I searched
Something went wrong with my newsreader and searches
please repeat your answer here if you don't mind

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
I tried converting regexoptions to bits sp I can do bitwise operation but
I
just could not get it going. I tried Google, so far I failed to find
the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes.
converting
int to Regexoptions is easy


Jun 11 '07 #3
Here is a link to the previous response:

http://groups.google.com/group/micro...ad7715cf3c1832
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:uT**************@TK2MSFTNGP06.phx.gbl...
Hello Nicholas, I was surprised that I could not find my prev post nor
answer to it. I was it must be a mistake of mine at late Saturday night.

I was searching to my prev post and did not find it: under from: gs. I
tried also by just subject of regexoption. Total posting by me since June
9
is 3 and only today's post is on regexoptions when I searched
Something went wrong with my newsreader and searches
please repeat your answer here if you don't mind

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
> What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
>I tried converting regexoptions to bits sp I can do bitwise operation
but
I
just could not get it going. I tried Google, so far I failed to find
the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes.
converting
int to Regexoptions is easy




Jun 11 '07 #4
GS
thank you. for your patience.

converting from checkboxes to int representation is the easy part for me.
however I still have trouble dealing with form int to checkboxes after
readying your answer.

I tried
RegexOptions myRegexOptions = (RegexOptions)regexOptions; // regexOptions;
is int form database
if ((RegexOptions.IgnoreCase) & myRegexOptions)
checkBoxIgnoreCase.Checked = true; // and I got
/*
Error 3 Cannot implicitly convert type
'System.Text.RegularExpressions.RegexOptions' to 'bool'
D:\data\IeI\gp\AppCom\IeStringClassProd\RegexParse 2CSV\RegexParse2CSV\RegexP
arse2Csv.cs 421 17 RegexParse2CSV
*/

what did I misunderstand ?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:Oy**************@TK2MSFTNGP04.phx.gbl...
Here is a link to the previous response:

http://groups.google.com/group/micro...ad7715cf3c1832
>

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:uT**************@TK2MSFTNGP06.phx.gbl...
Hello Nicholas, I was surprised that I could not find my prev post nor
answer to it. I was it must be a mistake of mine at late Saturday
night.

I was searching to my prev post and did not find it: under from: gs. I
tried also by just subject of regexoption. Total posting by me since
June
9
is 3 and only today's post is on regexoptions when I searched
Something went wrong with my newsreader and searches
please repeat your answer here if you don't mind

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
I tried converting regexoptions to bits sp I can do bitwise operation
but
I
just could not get it going. I tried Google, so far I failed to find
the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes.
converting
int to Regexoptions is easy





Jun 11 '07 #5
You didn't misunderstand anything, you just need one more step:

if (((RegexOptions.IgnoreCase) & myRegexOptions) == RegexOptions.IgnoreCase)
checkBoxIgnoreCase.Checked = true;

Or you could do:

if (((RegexOptions.IgnoreCase) & myRegexOptions) != 0)
checkBoxIgnoreCase.Checked = true;

Either way will work fine.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"GS" <gs**********************@msnews.Nomail.comwrote in message
news:%2*****************@TK2MSFTNGP02.phx.gbl...
thank you. for your patience.

converting from checkboxes to int representation is the easy part for me.
however I still have trouble dealing with form int to checkboxes after
readying your answer.

I tried
RegexOptions myRegexOptions = (RegexOptions)regexOptions; // regexOptions;
is int form database
if ((RegexOptions.IgnoreCase) & myRegexOptions)
checkBoxIgnoreCase.Checked = true; // and I got
/*
Error 3 Cannot implicitly convert type
'System.Text.RegularExpressions.RegexOptions' to 'bool'
D:\data\IeI\gp\AppCom\IeStringClassProd\RegexParse 2CSV\RegexParse2CSV\RegexP
arse2Csv.cs 421 17 RegexParse2CSV
*/

what did I misunderstand ?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in
message news:Oy**************@TK2MSFTNGP04.phx.gbl...
> Here is a link to the previous response:

http://groups.google.com/group/micro...ad7715cf3c1832
>>

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:uT**************@TK2MSFTNGP06.phx.gbl...
Hello Nicholas, I was surprised that I could not find my prev post nor
answer to it. I was it must be a mistake of mine at late Saturday
night.
>
I was searching to my prev post and did not find it: under from: gs. I
tried also by just subject of regexoption. Total posting by me since
June
9
is 3 and only today's post is on regexoptions when I searched
Something went wrong with my newsreader and searches
please repeat your answer here if you don't mind

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
wrote
in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
I tried converting regexoptions to bits sp I can do bitwise operation
but
I
just could not get it going. I tried Google, so far I failed to
find
the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes.
converting
int to Regexoptions is easy




Jun 11 '07 #6
GS
thank you very much for your patience and detailed answer.
much appreciated.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:OQ**************@TK2MSFTNGP03.phx.gbl...
You didn't misunderstand anything, you just need one more step:

if (((RegexOptions.IgnoreCase) & myRegexOptions) ==
RegexOptions.IgnoreCase)
checkBoxIgnoreCase.Checked = true;

Or you could do:

if (((RegexOptions.IgnoreCase) & myRegexOptions) != 0)
checkBoxIgnoreCase.Checked = true;

Either way will work fine.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"GS" <gs**********************@msnews.Nomail.comwrote in message
news:%2*****************@TK2MSFTNGP02.phx.gbl...
thank you. for your patience.

converting from checkboxes to int representation is the easy part for
me.
however I still have trouble dealing with form int to checkboxes after
readying your answer.

I tried
RegexOptions myRegexOptions = (RegexOptions)regexOptions; //
regexOptions;
is int form database
if ((RegexOptions.IgnoreCase) & myRegexOptions)
checkBoxIgnoreCase.Checked = true; // and I got
/*
Error 3 Cannot implicitly convert type
'System.Text.RegularExpressions.RegexOptions' to 'bool'
D:\data\IeI\gp\AppCom\IeStringClassProd\RegexParse 2CSV\RegexParse2CSV\RegexP
arse2Csv.cs 421 17 RegexParse2CSV
*/

what did I misunderstand ?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in
message news:Oy**************@TK2MSFTNGP04.phx.gbl...
Here is a link to the previous response:

http://groups.google.com/group/micro...ad7715cf3c1832
>

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:uT**************@TK2MSFTNGP06.phx.gbl...
Hello Nicholas, I was surprised that I could not find my prev post
nor
answer to it. I was it must be a mistake of mine at late Saturday
night.

I was searching to my prev post and did not find it: under from: gs.
I
tried also by just subject of regexoption. Total posting by me since
June
9
is 3 and only today's post is on regexoptions when I searched
Something went wrong with my newsreader and searches
please repeat your answer here if you don't mind

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
wrote
in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
What was wrong with my answer to your previous post?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GS" <gs**********************@msnews.Nomail.comwrote in message
news:O4**************@TK2MSFTNGP04.phx.gbl...
I tried converting regexoptions to bits sp I can do bitwise
operation
but
I
just could not get it going. I tried Google, so far I failed to
find
the
answer.

any hint?

what is happening, is that I retrieved the regexoptions value from
database
stored as int and I am trying to represent that in check boxes.
converting
int to Regexoptions is easy







Jun 12 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
4
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
2
by: [Gho] | last post by:
How to convert a Hexa value to negative and non negative value : if i get 0x1d = result should be 29 but if i get fd = result should be -3 How to do that
1
by: David P. Donahue | last post by:
I'm trying to use the following code to read in a file on my web server and display part of its contents (sorry for wrapping): StreamReader streamReaderFile = new...
1
by: pl | last post by:
Hello, I have a quick question, I would like to use multiple RegexOptions like RegexOptions.SingleLine and RegexOptions.IgnoreCase at the same time, but I haven't been able to find any resource...
4
by: Edwin Knoppert | last post by:
In my code i use the text from a textbox and convert it to a double value. I was using Convert.ToDouble() but i'm used to convert comma to dot. This way i can assure the text is correct. However...
1
by: GS | last post by:
I got a bunch of check boxes to represent regexoptions. converting that to one single regexoptions for storing in the database is easy. what about the other way, from database int to regexoptions...
0
by: AAaron123 | last post by:
The RegexOptions Enumeration contains: Multiline ExplicitCapture Compiled Singleline IgnorePatternWhitespace RightToLeft ECMAScript CultureInvariant
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.