Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo in Select statements
Message
De
08/02/2008 03:20:23
 
 
À
07/02/2008 14:28:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01290540
Message ID:
01290744
Vues:
19
>Hi All,
>
>I had a simalier problem back in 2006, but I can't seem to fix this one. I have a select string:
>
>SELECT TYPE, calldate AS act_time, lcPrblem AS problem_id, ;
>  "OLDFLTDB" AS user_id, lcclient AS client_id, ;
>  ALLTRIM(contacttype) + " - " + ;
>  TEXT AS act_notes, ;  <------- this is a memo field
>  "Number: " + ALLTRIM(STR(NUMBER)) ;
>  + "  ID: " + ALLTRIM(STR(ID)) AS nxtact_not, ;  <------- this is a memo field
>  TTOD(calldate) AS act_date ;
>  FROM ctempaction LEFT JOIN cactiontype ;
>  ON ctempaction.TYPE = cactiontype.contacttypeid ;
>  WHERE NUMBER = lnnumber ;
>  AND !EMPTY(TEXT) ;
>  INTO CURSOR csupaction READWRITE nofilter
>
>
>I am getting 'String is too long'. I have tried pading the text to be greater the 255 at all time. but that causes the error on all records.
>
>Any suggestions?
>
>TIA
>Beth

none memo issue exists here.
SELECT TYPE, calldate AS act_time, lcPrblem AS problem_id, ;
  "OLDFLTDB" AS user_id, lcclient AS client_id, ;
  ALLTRIM(contacttype) + " - " + ;
  TEXT AS act_notes, ;  <------- this is a memo field
  LEFT("Number: " + LTRIM(STR(NUMBER)) ;
  + "  ID: " + LTRIM(STR(ID)),35) AS nxtact_not, ;  <------- this is NOT a memo field
  TTOD(calldate) AS act_date ;
  FROM ctempaction LEFT JOIN cactiontype ;
  ON ctempaction.TYPE = cactiontype.contacttypeid ;
  WHERE NUMBER = lnnumber ;
  AND !EMPTY(TEXT) ;
  INTO CURSOR csupaction READWRITE && READWRITE => nofilter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform