Talk About Network

Google


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


Data Bases > Paradox > Re: Pdox DOS im...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 1336 of 1428
Post > Topic >>

Re: Pdox DOS im****t problem

by "Tony McGuire" <png.paradoxcommunity@[EMAIL PROTECTED] > Mar 6, 2008 at 09:26 AM

Paradox doesn't like unmatched single quotes, or quotes within data 
regardless of whether you tell it that quotes are delimiters.

I get around it by creating my own im****t routines.  Fortunately, the 
data I get is separated with tabs rather than commas.  Commas can also 
appear as separators, which can make life hard.

I use tcursors, and read the data with a textstream into an array. 
Then do a breakapart on the tabs after applying the below.
==================================
; y is the array element number being processed
; k is arbitrary; I know it is high enough
; to ensure all elements are tested, and array elements created.
    for k from 1 to 50
      try
        if match(arRead[y],"..\t\t..",aa,ab) then
          arRead[y]=aa+"\t \t"+ab
        else
          quitloop
        endif
      onFail
        arRead[y].view()
        return False
      endTry
    endfor
==================================

The above looks for adjoining tabs, which indicate that there is a 
blank field there.  So I replace double tabs with {tab}{space}{tab}, 
which gives me blank array values rather than missing array elements 
(a limitation of the breakapart function).

You should be able to replace the \t with commas; although it may 
require some work since I believe commas are special instructions to 
MATCH.









-- 
------------------------------
 Tony McGuire
 




 10 Posts in Topic:
Pdox DOS import problem
"JoeSpareBedroom&quo  2008-03-06 15:45:18 
Re: Pdox DOS import problem
"JoeSpareBedroom&quo  2008-03-06 15:52:30 
Re: Pdox DOS import problem
"Tony McGuire"   2008-03-06 09:26:33 
Re: Pdox DOS import problem
"Tony McGuire"   2008-03-06 10:21:58 
Re: Pdox DOS import problem
"Steven Green"   2008-03-06 13:52:57 
Re: Pdox DOS import problem
"JoeSpareBedroom&quo  2008-03-06 19:21:23 
Re: Pdox DOS import problem
"Rodney Wise" &  2008-03-06 14:47:26 
Re: Pdox DOS import problem
"JoeSpareBedroom&quo  2008-03-06 19:58:30 
Re: Pdox DOS import problem
Michael Kennedy <Info@  2008-03-06 20:10:18 
Re: Pdox DOS import problem
"JoeSpareBedroom&quo  2008-03-06 20:20:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Dec 2 22:18:22 CST 2008.