View Single Post
  #5  
Old 5th May 2004, 09:17
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 577
günther is on a distinguished road
Baan: IVc4 - DB: Informix - OS: HP-UX
avoid active polling!

Reinhard, you are using active polling which might be very time consuming for your cpu; and I guess your activate part is not working. Here is a slightly modified version:

Code:
#include <bic_process>

long year, month, day

if type.of.field() = DB.ENUM then
  long child
  child = activate("ttstpcalendar")
  
  wait(child, WTHANG) | instead of "repeat until g.value > 0"

  num.to.date(g.value, year, month, day)
endif
Reply With Quote