vb6 - Visual Basic 6.0 : Function time -


public t,tt integer public traveltime(row, row) double 

above how declare t , tt in coding. t , tt total time of traveltime.

my problem is, failed find ways declare t , tt.

i did try using

formatdatetime(d, vbshorttime) string 

it prompt error

"compile error: statement invalid outside type block"

is there other ways can declare t, tt , traveltime, when calculates traveltime, appear based on hh:mm:ss now, shows 19:75 instead of 20:15

are there ways, can explain part did wrong?

thanks!


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -