on 5/29/01 17:06, Kevin Windham at kevo /at/ gatorgraphics .D.OT com wrote:
Hi Kevein,
> When using fields from a BaseObject, such as a time or date field, you have > access to the components of the date and time such as the day or hour. When > you do a search you end up with a cursor. So far I have only been able to > figure out how to get or set a string from/to these fields. > > Is there a way to coerce the cursor field to an actual time or date field so > I can set or get the components individually. > > For example, > > Vcursor.field("StartTime").hour=8 > > This is in RealBasic, and that line of code fails, but that is what I would > like to do.
Yes, you can coerce to needed File Type using
curs.TimeField("StartTime").Hour = 8
if you will access EACH property of time field then faster to obtain local reference
dim timeFld as VTime
timeFld = curs.TimeField("StartTime") timeFld.hour = timeFld.minute = timeFld.second =
-- Best regards, Ruslan Zasukhin
------------------------- Paradigma.
e-mail: ruslan@paradigmasoft.com web : http://www.paradigmasoft.com
To subscribe to the Valentina mail list send a letter to valentina-on /at/ lists .D.OT macserve.net
------------------------------------------------------------- The Valentina mailing list is brought to you by MacServe.net For info on lists services, see http://www.macserve.net/lists.html ©2001 Ruslan Zasukhin |