Steve, My hat is off to you. All these years, and I guess I have never attempted to read a string variable into sequence code. Amazing, I guess the STRING performs a type casting on the result of the external reference. Thanks! David At 02:58 PM 8/15/2006, you wrote: >David - You have to specify that the variable retrieval is a string. So > >SN0001 := :SET_CALENDER:LOAD_CAL8.DESCRP > >should be > >SN0001 := STRING :SET_CALENDER:LOAD_CAL8.DESCRP; >or >SN0001 := STRING :'the_block'; > > >Regards, > >Steve Shimp >Maintenance & Systems Engineer >ExxonMobil Paulsboro Lube Plant >phone: 856.224.5059 cell: 609.820.8501 fax: 856.224.5030 >email: steve.shimp@xxxxxxxxxxxxxx > >foxboro-bounce@xxxxxxxxxxxxx wrote on 08/15/2006 03:48:59 PM: > > > Hey Everyone, > > > > I am running some pretty innocent looking sequence code, but it blows > > up when I try to read the DESCRP of a REAL block in > > SN0001. Initially I was trying something like this. > > > > the_block := ":SET_CALENDER.LOAD_CAL",OPER_INPUT,".DESCRP" > > SN0001 := :'the_block'; > > > > this faulted with an error of 2301 > > so I tried this > > > > SN0001 := :SET_CALENDER:LOAD_CAL8.DESCRP > > > > same error. > > > > but it's there and works when I do an > > /usr/fox/bin/tools/omget SET_CALENDER:LOAD_CAL8.DESCRP > > > > Any ideas why I can't assign this? > > > > Thanks, > > David > > > >_______________________________________________________________________ >This mailing list is neither sponsored nor endorsed by Invensys Process >Systems (formerly The Foxboro Company). Use the info you obtain here at >your own risks. Read http://www.thecassandraproject.org/disclaimer.html > >foxboro mailing list: //www.freelists.org/list/foxboro >to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join >to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave > _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave