Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String is too long to fit
Message
From
06/07/1999 09:51:22
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00237705
Message ID:
00237716
Views:
14
Nadya,

Might it be easier just to do the first select into a table, then select from the others and append them into the first table one by one?

This avoids problems associated with trying to debug macro commands.

P.S., you can enclose your code blocks in the
and
tags to have them come out mono-spaced and indented.


>Hi,
>
>I was trying to create cursor for my report using this code:
>
> 	FOR lni=1 to lnTableCount
>		lcCommand=lcCommand+;
>			"SELECT '"+laTables[lni]+"' AS TABLE,"+;
>			"GROUP,FIELD_NAME,HEADER,"+;
>			"ALLTRIM(DEFINITION) AS DESCR,"+;
>			"FIELD_TYPE,FIELD_LEN,FIELD_DEC,FIELD_NULL,"+ ;
>			laTables[lni] +" AS FIELD_ORDER FROM DATADICT WHERE "+laTables[lni]+">0 "+;
>			"INTO CURSOR cur"+alltrim(str(lni))
>
>        if lni=lnTableCount
>          lcCommand=lcCommand+" ORDER BY 1,10"
>        endif
>
>		&lcCommand
>
>		lcCommand="SELECT * FROM cur" +alltrim(str(lni))+" UNION "
>
>	ENDFOR
>
>******************************
> Here lcTableCount=11.
> Unfortunately, on 3rd lni I have an error message "string is too long to fit". How can I resolve this?
>
> Thanks in advance
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform