Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Retrieve an arr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 894 of 959
Post > Topic >>

Retrieve an array using non-subscript data

by =?iso-8859-1?q?S=E9bastien_de_Mapias?= <sglrigaud@[EMAIL PROTECTED] > Oct 3, 2007 at 12:31 AM

Hello,

I saw Mumps examples like:
~ set ^Stuff(1) = "ABC`12380`xyz"
~ set ^Stuff(2) = "DEF`98787`ghf"
etc.
and then the following
~ set data=$get(^Stuff(2))
~ set field1=$piece(data,"`",1)
~ set field2=$piece(data,"`",2)
~ etc.

but what would be the way to retrieve Stuff where
field2 = 12380 for instance ? what's the syntax ?:
~ set stuff = [get ^Stuff where 2nd field = 12380]
so here 'stuff' would be a reference to the array
"ABC`12380`xyz" (that I could further process)...

Thanks...
SR




 11 Posts in Topic:
Retrieve an array using non-subscript data
=?iso-8859-1?q?S=E9bastie  2007-10-03 00:31:34 
RE: Retrieve an array using non-subscript data
John Murray <johnm@[EM  2007-10-03 09:12:50 
Re: Retrieve an array using non-subscript data
=?iso-8859-1?q?S=E9bastie  2007-10-03 04:47:24 
Re: Retrieve an array using non-subscript data
Rob Tweed <rtweed@[EMA  2007-10-03 15:40:39 
Re: Retrieve an array using non-subscript data
John Murray <johnm@[EM  2007-10-03 15:47:19 
Re: Retrieve an array using non-subscript data
=?iso-8859-1?q?S=E9bastie  2007-10-03 23:53:59 
Re: Retrieve an array using non-subscript data
"K.S. Bhaskar"   2007-10-04 07:10:13 
Re: Retrieve an array using non-subscript data
"K.S. Bhaskar"   2007-10-03 07:04:00 
Re: Retrieve an array using non-subscript data
=?iso-8859-1?q?S=E9bastie  2007-10-03 08:30:46 
Re: Retrieve an array using non-subscript data
Pete <peter.charbonnie  2007-10-03 17:35:28 
Re: Retrieve an array using non-subscript data
lmv <lverhulst@[EMAIL   2007-10-04 09:06:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 22:32:54 CDT 2008.