Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Widen number of records by field
Message
From
03/11/2009 06:35:06
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
03/11/2009 06:23:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01432871
Message ID:
01432878
Views:
50
Gregory

(@.@)

{snip}I know I can SCAN and INSERT (etc)., but this is not my problem.{snap}

Do you realy think I enter UNIONs up to MaxInt?
O.K, I will simplify:
Lets say I need it up to
CALCULATE MAX(iChair) TO lnMaxChairs
Agnes

>Although the original message did not mention FOR ( just scan)
>
>
>	CREATE CURSOR curTable (cTableNumber c(1), iChair I)
>	INSERT INTO curTable VALUES ('1',4)
>	INSERT INTO curTable VALUES ('2',3)
>	INSERT INTO curTable VALUES ('3',2)
>	INSERT INTO curTable VALUES ('4',6)
>
>	
>	create cursor xx ( xx I)
>	insert into xx values(1)
>	
>	
>	
>	select cTableNumber, ;
>			cTableNumber + '.' + padl(Id,1) as cChairNumber ;
>		from curTable ;
>			join  ( ;
>					select cast(1 as int) as Id from xx ;
>				union select cast(2 as int)  from xx ;
>				union select cast(3 as int)  from xx ;
>				union select cast(4 as int)  from xx ;
>				union select cast(5 as int)  from xx ;
>				union select cast(6 as int)  from xx ;
>				union select cast(7 as int)  from xx ;
>				union select cast(8 as int)  from xx ;
>				union select cast(9 as int)  from xx ;
>			)	Chair on ( Id  <= iChair );
>		into cursor tmp ;
>		order by 1, 2
>
>
>
>(^_~)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform