Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert time to number
Message
From
26/12/2005 01:08:45
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080685
Message ID:
01080794
Views:
15
hi,
thank you for reply,
I a gree 100%
thank you again.

m.qasem
>Mohammed,
>
>Both, SCAN and REPLACE have FOR clause where you can specify a filter
>USE table1 IN  0
>SCAN FOR plan > "00:00:00"
>...
>or
>replace plan1 WITH VAL(SUBSTR(plan,1,2))*60+VAL(SUBSTR(plan,4,2)) ;
>   FOR plan > "00:00:00"
>
REPLACE with FOR clause will be faster because it loock the table once for the duration of operation. That's also its downside.
>
>
>>it works as
>>
>>USE table1 IN  0
>>  SET FILTER TO plan>"00:00:00"
>>SCAN
>>replace plan1 WITH VAL(SUBSTR(plan,1,2))*60+VAL(SUBSTR(plan,4,2))
>>ENDSCAN
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform