VTime in V4RB2.4.2

Beatrix Willius bwillius at gmx.de
Sun Sep 24 13:17:05 CDT 2006


Since updating to 2.4.2 I have a problem with a time field. The  
following code

   dim mTable as VTable
   mTable = mDatabase.CreateTable("Message")
   dim MainDate as VDate = new VDate("MainDate")
   dim MainTime as VTime = new VTime("MainTime")
   dim theCursor as VCursor = mDatabase.SqlSelect("select * from  
message", EVCursorLocation.kServerSide, EVLockType.kNoLocks,  
EVCursorDirection.kRandom)
   theCursor.SetBlank
   dim theDate as new Date
   theCursor.Field("MainDate").setString(theDate.ShortDate)
   theCursor.Field("MainTime").setString(theDate.LongTime)
   theCursor.Field("MainTime").setString("08:15:17:234")

gives a VException for the first line with MainTime (Time Value "xxx"  
is invalid. Illegal Value at "8" position.). The second line works.  
Has anything been changed for 2.4.2? Is this a bug or a feature?


Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.



More information about the Valentina mailing list