Click here to Skip to main content
15,909,652 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcalling a subroutine at the beginnign Pin
NickOne25-Jan-03 14:16
NickOne25-Jan-03 14:16 
GeneralRe: calling a subroutine at the beginnign Pin
Hesham Amin26-Jan-03 10:52
Hesham Amin26-Jan-03 10:52 
GeneralRe: calling a subroutine at the beginnign Pin
Paul Farry22-Feb-03 17:41
professionalPaul Farry22-Feb-03 17:41 
Generalgenerating report based on parametres in Where clause Pin
mcm25-Jan-03 4:37
mcm25-Jan-03 4:37 
GeneralSerializing a strong typed collection Pin
Jan Tielens24-Jan-03 10:13
Jan Tielens24-Jan-03 10:13 
GeneralRe: Serializing a strong typed collection Pin
Jan Tielens3-Mar-03 7:31
Jan Tielens3-Mar-03 7:31 
QuestionVB 6.0 printf-like string function? Pin
Derek Price24-Jan-03 8:31
Derek Price24-Jan-03 8:31 
AnswerRe: VB 6.0 printf-like string function? Pin
pnpfriend24-Jan-03 9:44
pnpfriend24-Jan-03 9:44 
I'm beginner in VB too..
that's what I found in MFC. Hope it is useful.
<br />
Dim MyTime, MyDate, MyStr<br />
MyTime = #17:04:23#<br />
MyDate = #January 27, 1993#<br />
<br />
' Returns current system time in the system-defined long time format.<br />
MyStr = Format(Time, "Long Time")<br />
<br />
' Returns current system date in the system-defined long date format.<br />
MyStr = Format(Date, "Long Date")<br />
<br />
MyStr = Format(MyTime, "h:m:s")   ' Returns "17:4:23".<br />
MyStr = Format(MyTime, "hh:mm:ss AMPM")   ' Returns "05:04:23 PM".<br />
MyStr = Format(MyDate, "dddd, mmm d yyyy")   ' Returns "Wednesday,<br />
   ' Jan 27 1993".<br />
' If format is not supplied, a string is returned.<br />
MyStr = Format(23)   ' Returns "23".<br />
<br />
' User-defined formats.<br />
MyStr = Format(5459.4, "##,##0.00")   ' Returns "5,459.40".<br />
MyStr = Format(334.9, "###0.00")   ' Returns "334.90".<br />
MyStr = Format(5, "0.00%")   ' Returns "500.00%".<br />
MyStr = Format("HELLO", "<")   ' Returns "hello".<br />
MyStr = Format("This is it", ">")   ' Returns "THIS IS IT".<br />
<br />

GeneralRe: VB 6.0 printf-like string function? Pin
Derek Price24-Jan-03 9:51
Derek Price24-Jan-03 9:51 
GeneralRe: VB 6.0 printf-like string function? Pin
mixahlos27-Jan-03 11:12
mixahlos27-Jan-03 11:12 
GeneralMinimize button Pin
Xanty24-Jan-03 6:31
Xanty24-Jan-03 6:31 
GeneralRe: Minimize button Pin
SimonS24-Jan-03 7:11
SimonS24-Jan-03 7:11 
GeneralRe: Minimize button Pin
Anomaly102428-Jan-03 16:39
Anomaly102428-Jan-03 16:39 
Generalint to a Pin
pnpfriend24-Jan-03 6:01
pnpfriend24-Jan-03 6:01 
GeneralRe: int to a Pin
SimonS24-Jan-03 7:05
SimonS24-Jan-03 7:05 
GeneralRe: int to a Pin
pnpfriend24-Jan-03 7:21
pnpfriend24-Jan-03 7:21 
GeneralRe: int to a Pin
SimonS24-Jan-03 7:36
SimonS24-Jan-03 7:36 
GeneralRe: int to a Pin
Nick Seng24-Jan-03 8:01
Nick Seng24-Jan-03 8:01 
GeneralRe: int to a Pin
Ray Cassick24-Jan-03 8:10
Ray Cassick24-Jan-03 8:10 
GeneralRe: int to a Pin
pnpfriend24-Jan-03 9:41
pnpfriend24-Jan-03 9:41 
Generalgenerating report based on values in 2textboxes Pin
mcm24-Jan-03 4:19
mcm24-Jan-03 4:19 
Generaladd new IE button in registry - vbs Pin
Florin Ochiana23-Jan-03 21:04
Florin Ochiana23-Jan-03 21:04 
GeneralRe: add new IE button in registry - vbs Pin
Florin Ochiana23-Jan-03 23:08
Florin Ochiana23-Jan-03 23:08 
Generalget single cell name.. Pin
pnpfriend23-Jan-03 10:39
pnpfriend23-Jan-03 10:39 
GeneralRe: get single cell name.. Pin
Nick Seng23-Jan-03 14:43
Nick Seng23-Jan-03 14:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.