Re: how test for empty sub-sequence?
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Jan 28, 2000
- 674 views
Joe, My code's such a mess at this point I think it would take as long to abstract relevant snippets as to try to follow what it is I made happen. I thank you for the offer, & if I start pulling out too much of my hair, I may re-think & start snipping! In general, I had made a number of stand-alone modules to make different tasks work (pretty simple things like: edit keyed in text; save result in variable to disk; read it; show it with original font size); then I "integrated" the modules by turning them into includes, with global variables to pass various info back & forth between them & to "main", and now it mostly works except in one (?) mostly avoidable instance. The real problem is that I'm running the unregistered Euphoria, so while I got error messages with the small modules, I don't now that I've integrated them, so I have to THINK about what is happening, & hope I'm mentally following my own code correctly (no small task for me!). The problem relates to when I try to set fontsize from info that was stored into disk file & then read back out into a "structured"(?) variable; it works ok when I actually DO store font size info, & crashes if I haven't, that's why I thought I was trying to read an empty sequence. I'll get back to you if I can't figure it out on my own. :) Dan -----Original Message----- >Dan, >Can you post a little bit of the code that's giving you trouble? >Joe > ><snip> > >Joe, > >I guess I must have a different problem than I thought, 'cause that didn't >fix it. Drat. Now I have to think more about what the actual problem might >be. I will save your example in my personal FAQ for future use, though. :) > >Dan > ><snip> > >>How can I test a sequence to see if a sub-sequence is empty or not? >> >>Dan Moyer