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 > Xbase Codebase > Long Memo Field...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 208 of 304
Post > Topic >>

Long Memo Field $ Query Fails

by pvallat@[EMAIL PROTECTED] Aug 10, 2005 at 10:35 AM

Hello,

I have a database with approx 20K records with 10 fields. out of this
field set one field is Memo field.

the database is index on ID not on the Memofiled.

I am querying using the $ this works upto a perticular length of the
memo field text. After that it is not finding.

the Size of memo fields is approx 11K to 80K in size.

CAN ANY ONE SUGGEST/HELP WHAT COLD BE THE PROBLEM.

Thanks in advance.

Vallat



CODE :
   Dim badExpr
        If UCase(fldNode.Attributes("Type").Value) = "FTEXT" Then
            badExpr = "'" & SetText(txtSearchTems.Text) & "' $ " & "D_"
& fldNode.Attributes("DBFN").Value
        Else
            badExpr = "'" & SetText(txtSearchTems.Text) & "' $ " &
fldNode.Attributes("DBFN").Value
        End If

        Dim expr = expr4parse(DATA.CB.db, badExpr)
        Dim rcl& = code4memSizeMemoExpr(DATA.CB.cb&, 2048)
        Call Query(DATA.CB.db, badExpr, "")



-----------
Sub Query(ByVal dbf As Long, ByVal expr As String, ByVal order As
String)
        Try
            Dim rc As Integer
            Dim relation As Long                         'RELATE4
pointer
            relation = relate4init(dbf)           'Initialize the
relation/query

            If relation <> 0 Then
                'Set query condition and sort order
                rc = relate4querySet(relation, expr)
                rc = relate4sortSet(relation, order)
                rc = relate4top(relation)                    'First
record

                LoadTOC(DATA.CB.db, relation)

                rc = relate4free(relation, 0)
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

end sub
 




 1 Posts in Topic:
Long Memo Field $ Query Fails
pvallat@[EMAIL PROTECTED]  2005-08-10 10:35:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan13V112 Sun Jul 6 1:19:07 CDT 2008.