Thanks. I'm using 8.0, and will try to see which of the two approaches will work. I'd prefer to avoid pre-filled String channels as I'll need up to 10-12 letters.
Regards, Chris - Sent from my ASUS Pad Ian MacLeod <[email protected]> wrote: ><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; >panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; >panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, >li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; >font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, >span.MsoHyperlink {mso-style-priority:99; color:blue; >text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed >{mso-style-priority:99; color:purple; text-decoration:underline;} p > {mso-style-priority:99; mso-margin-top-alt:auto; >margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; > font-size:12.0pt; font-family:"Times New Roman","serif";} >span.EmailStyle18 {mso-style-type:personal; >font-family:"Calibri","sans-serif"; color:#1F497D;} span.EmailStyle19 > {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; > color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; >font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in >1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --> > >Chris and Brian, > > > >Apologies, I missed that Chris asked about the Channel Math GX, and my >response was for applying an expression directly to a channel. The Channel >Math GX does accept strings inside the expression, and this works for me: > > > >C0=x>0?”a”:”zzz”, where C0 is a string channel, which is then filled with “a” >or “zzz”. > > > >I did not need to pre-fill the output channel though, but maybe this is >something that works in my version (8.2, yet to be released). Check with the >help desk and they can confirm if it works in 8.1. Brian’s suggestion should >certainly work. > > > >Cheers, > >Ian > >From: [email protected] [mailto:[email protected]] On Behalf Of >Ian MacLeod >Sent: Thursday, March 20, 2014 10:49 PM >To: Geosoft Oasis montaj and Target >Subject: RE: [geonet] Manipulating String Values > > > >Hi Chris, > > > >I tried what Brian suggested by creating a string channel named “class” and >filling it with something, but I could not get it to work with something like: > > > >=x>0?”a”:”b” > > > >This gives me a syntax error on the strings. I expect I misunderstand Brian, >or I’m doing something wrong. > > > >But if I create string channels named “aaa” and “bbb” (names are not >important), then fill “aaa” with “a” and “bbb” with “b”, I can use these as >the result of an expression in the “class” channel like this: > > > >=x>0?aaa:bbb > > > >This gives me “a” (the contents of the “aaa” channel) wherever the “x” channel >is greater than 0, and “b” wherever “x” is less than or equal to 0. > > > >I hope this helps. > > > >Cheers, > >Ian > > > >From: [email protected] [mailto:[email protected]] On Behalf Of >Brian Junck >Sent: Thursday, March 20, 2014 8:36 PM >To: Geosoft Oasis montaj and Target >Subject: Re: [geonet] Manipulating String Values > > > >Chris, > >You can use the Channel Math GX in the normal way to populate a string >channel- the catch is that the string channel has to already have data values >in it. If the channel is empty, then nothing will populate. > > > >So if you create a string channel, copy the contents from another channel that >is fully populated to that new string channel, then run your expression in the >channel math GX, it should populate. > >-Brian J. > > > > > >On Thu, Mar 20, 2014 at 8:04 PM, Chris Vaughan <[email protected]> wrote: > >Is there syntax in the Channel Math GX that will allow one to place a String, >say a letter, in a String channel cell based upon the numerical value in >another channel? > > > >Regards, Chris > > > >--- > >Forum archives can be accessed here: >http://lyris.geosoft.com/read/?fourm=geonet > >You are currently subscribed to geonet as: [email protected]. > >To subscribe or unsubscribe from any of our forums, select the User Forum >selection on the Geosoft Community page: >http://www.geosoft.com/support/community > > > > >-- >-Brian J. > >--- > >Forum archives can be accessed here: >http://lyris.geosoft.com/read/?fourm=geonet > >You are currently subscribed to geonet as: [email protected]. > >To subscribe or unsubscribe from any of our forums, select the User Forum >selection on the Geosoft Community page: >http://www.geosoft.com/support/community > >--- > >Forum archives can be accessed here: >http://lyris.geosoft.com/read/?fourm=geonet > >You are currently subscribed to geonet as: [email protected]. > >To subscribe or unsubscribe from any of our forums, select the User Forum >selection on the Geosoft Community page: >http://www.geosoft.com/support/community > > --- > > > > Forum archives can be accessed here: > http://lyris.geosoft.com/read/?fourm=geonet > > > > You are currently subscribed to geonet as: > [email protected]. > > > > To subscribe or unsubscribe from any of our forums, > select the User Forum selection on the Geosoft Community page: > http://www.geosoft.com/support/community > --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community
