Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!think!snorkelwacker!bloom-beacon!zardoz.coral.COM!don From: don@zardoz.coral.COM (Don Dewar) Newsgroups: comp.windows.x Subject: MrmFetchLiteral and String tables? Help!?!? Message-ID: <9006061717.AA06178@zardoz.coral.com> Date: 6 Jun 90 17:17:19 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 66 I want to store some string array data in a uil file that I use to build a screen, but it is not directly related to uil. So I stored it as an asciz_table. When I fetch the data, however, there is some unknown (to me) data at the beginning of the structure followed by the list of strings I am interested in. Here is an excerpt from the uil file, followed by an excerpt from the c-code, followed by what gdb tells me is there. Then, I ask some questions. The UIL file ColumnList : exported asciz_string_table ('objectid', 'model', 'contact'); The C-code char *pcollist; if (!(MrmFetchLiteral(mrmid, "ColumnList", UNULL, &pcollist, type))) { return; } GDB (gdb) print (char [39])*pcollist $5 ={"\000$\006P\000$\006Y\000$\006_\000\000\000\000objectid\000model\000contact\000"} I have guessed that the \006 is the data type (RGMrTypeCStringVector of each element in the table. I can't figure out what the P, Y, and _ are except that they are the same number apart in the ascii table as each value in the string table is apart (ie. Y is 9 from P and contact starts 9 from the start of model). And I assumed the $ is just some separator character. Questions: Is this the output I should get? Where is the structure for this table defined? Are there convenience functions for gettting the nth element out of the table? Is what I am doing ok or is it frowned upon? Is there a better way to do this in uil? Miscellaneous Information I am running motif (of course) with X11 rev 4 on a sparcstation (sun4) under SunOs 4.03. Any help would be appreciated. +---------+ | Coral | |@@@@@*@**| |@@*@@**@@| Don Dewar |*@@**@@@@| Coral Network Corporation, Marlborough, MA |@***@@@@@| Internet: don@coral.com |@@**@@@@@| Phone: (508) 460-6010 |*********| Fax: (508) 481-6258 |Networks | +---------+