Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying a cursor
Message
From
18/06/2014 12:08:57
 
 
To
18/06/2014 01:53:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
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:
01602042
Views:
50
>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);
>>		
>>
>>
Thanks, guys.
Previous
Reply
Map
View

Click here to load this message in the networking platform