RE: Locating a blob in memory
Posted in 1997
Jake, you can display a text var in a huge wordwrap field, be it located in memory or in a file. You will not be able to scroll it though (that's a limitation of wordwrap fields). As an alternative, you can select tracts of blobs (again, into a blob var - remember, no conversion possible) using the select blob[start, end] syntax: use that in a loop, and there you have a scrolling blob in a wordwrap field. Of course, you could always pass the blob to a c routine using poplocator(&myblob). This could the split the blob in sequential text lines, format them, etc, etc (which reminds me that I wrote a small text formatter, except that it uses char vars - let me know if you need it) HTH, Marco ____________________________________________________________________________ rem radioterapia, which I immeritately manage, seldom agrees with what I say marco greco (Catania, Italy) Work: marcog@ctonline.it rem radioterapia 39 95 447828 fax 446558 (was mar.greco@agora.stm.it) Achea 39 95 503117 --- On Fri, 4 Apr 1997 11:15:55 GMT Jacob Salomon <jake@apparel.net> wrote: Hi Folks, I am spinning off the thread "blob: file vs. memory" to ask a related question. In ESQL, if I locate a blob in memory, I can access that nemory and do intelligent work against it. This is because I either set the location of the memory buffer or can find it using internal fields of the "locator" structure. However, in 4GL. if I locate it in memory, what in *&^! can I do with it? I see no 4Gl commands or functions to access the blob data once I have fetched it into memory. I can't even copy it to another buffer. This is relevant to me because I would like to store tracts of text in blobs and I'd like to display them in a huge wordwrap field in a window. I'd rather not have to locate it in a file and then run "more" on the file (which is what I'm doing now.) Suggestions? -- -- Jake (In persuit of undomesticated aquatic avians) +-----------------------------------------------------------+ | Impeccable Logic: A thought process which successfully | | resists chicken bites | +-----------------------------------------------------------+ -----------------End of Original Message-----------------