home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,677 of 9,834   
   Liz McGuire to Ike   
   Re: Frustrated with data entry people   
   29 Jun 07 17:31:23   
   
   From: liz@paradoxcommunity.com   
      
   Ike wrote:   
   >   
   > But, I do not understand why a Tab is replaced with three   
   > spaces. Shouldn't it be just one space? I do not see anything in your   
   > code that would account for this. From what I see, it should be turned   
   > into just one space.  Maybe you could enlighten me with why the tab is   
   > turned into three spaces? Is this a default of Paradox?   
      
   I can't begin to figure that one out unless the original text that was   
   pasted into the field included spaces around the tab.  Otherwise, I'd   
   blame gremlins, or the heat, maybe the Dragon Reborn...   Try some   
   more tests and if it's still doing it, I'll try some testing...   
      
   Not that you want it for this application, but you could add the   
   following, just before the "eventInfo.setNewValue(..)" line:   
      
   stNewValue = rtrim(ltrim(stNewValue))   
      
   ...and it would trim any white-space characters from the start and the   
   end of the string.   
      
   > Actually, my preference is that each bad character is replaced with a   
   > null instead of the space. I currently have it doing this so I am a   
   > happy camper.   
      
   Sounds like you figured it out, but just for good measure...  To have   
   the character removed and not replaced, you just change this line from   
   inside the for loop:   
      
   stNewValue = stNewValue + " " + arBreak[liCounter]   
      
   ...to this:   
      
   stNewValue = stNewValue + arBreak[liCounter]   
      
   > I plan to study your code further and with a bit of luck, be on my way   
   > to write my own OPAL routines.   
      
   It can take a bit of work to figure out, but it's lots of fun getting   
   there, IMO.   
      
   > I truly appreciate you going far beyond what I expected. Thank you . .   
   > .. thank you . . . thank you!   
      
   You're welcome.   
      
   Liz   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca