![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
LK Oh it somehow I could change the name in the create table commant I would not have to try and delete the original market, something like this; Create Table Market; (dstock c(4)) Select Bstock form Daily; Where Ttime= THISFORM.dDate; Into DBF Market run program again; Create Table Market01; (dstock c(4)) Select Bstock form Daily; Where Ttime= THISFORM.dDate; Into DBF Market01 But somehow you would have to save the last Market name and it can't be in a m,emory variable because you would lose it when you finished running the program and started it again. |
#4
| |||
| |||
|
|
Something like: LOCAL lcMarket LOCAL ARRAY laMarkets[1] ADIR(laMarkets,"Market??.dbf") lnLast = VAL(RIGHT(JUSTSTEM(laMarkets[ALEN(laMarkets,1),1]),2))+1 lcMarket = "Market"+TRANSFORM(lnLast,"@L 99") CREATE TABLE "&lcMarket" (; dstock c(4)) IF USED("MarketXX") USE IN MarketXX endif USE "&lcMarket" ALIAS MarketXX |
#5
| |||
| |||
|
|
Create Table Market; (dstock c(4)) Now I need to select something from another table and insert it into table, 'Market' Select Bstock form Daily; Where Ttime= THISFORM.dDate; Into DBF Market |
![]() |
| Thread Tools | |
| Display Modes | |
| |