Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying a cursor
Message
From
18/06/2014 01:53:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
18/06/2014 01:49:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602016
Message ID:
01602025
Views:
70
Hi Gregory.

Ooops. Yes I can do this.
I was shure to have tried and failed ages ago (VFP 5 ???). And I never use fieldnames longer then 10 chars.

Lutz

>>#4 A cursor structure can not be altered (The command is ALTER TABLE)
>
>
>Oh, yes, it can - as long as the length of the fieldname is max 10 chars - beyond 10 chars you will get an error
>
>> If you need to alter a structure, you would need SELECT .. INTO Table and later ALTER TABLE
>
>Not necessarily
>
>
>	create cursor tmp ;
>	(	Id	I, ;
>		Name c(20);
>	)
>	insert into tmp values (1, '1')
>	insert into tmp values (1, '1')
>	
>	alter table tmp ;
>		alter Name c(10) ;
>		add FirstName c(15);
>		
>
>
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
Next
Reply
Map
View

Click here to load this message in the networking platform