Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a faster way????
Message
From
02/03/2001 01:40:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00481135
Message ID:
00481235
Views:
12
SELECT STK_REC_NUM2 && look at the character table
SCAN
	 insert into STK_REC_REAL (FIELD_C, FIELD_N, FIELD_D) ;
	 	values (alltrim(STK_REC_NUM2.FIELD_C), ;
	 	iif(right(alltrim(STK_REC_NUM2.FIELD_N), 1) = '-', ;
	 		-val(alltrim(STK_REC_NUM2.FIELD_N)), ;
	 		val(alltrim(STK_REC_NUM2.FIELD_N))), ;
	 	STRINGYMDTODATE(alltrim(STK_REC_NUM2.FIELD_D))
ENDSCAN

alternately:

select padr(ltrim(STK_REC_NUM2.FIELD_C), FIELD_C_length) as FIELD_C, ;
	 	iif(right(alltrim(STK_REC_NUM2.FIELD_N), 1) = '-', ;
	 		-val(alltrim(STK_REC_NUM2.FIELD_N)), ;
	 		val(alltrim(STK_REC_NUM2.FIELD_N))) as FIELD_N, ;
	 	STRINGYMDTODATE(alltrim(STK_REC_NUM2.FIELD_D) as FIELD_D ;
	 from STK_REC_NUM2 ;
	 into table temptable
	 
select STK_REC_REAL
append from temptable
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform