Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Format$ with argument "00" do in VB6?

Tags:

vb6

I am looking at VB6 with statements like -

  selected = lstIDS.ListIndex
  NUM_ENTRIES = Format$(selected, "00")

What does the format function with the "00" argument do?

like image 957
CodeBlue Avatar asked Feb 20 '23 21:02

CodeBlue


1 Answers

Format$(1, "00") returns 01. Format$(1, "000") would return 001 and so on. That format argument specifies the minimal numer of digits the number will be displayed with. There, I did it :-)

like image 96
Dejan Janjušević Avatar answered Feb 23 '23 11:02

Dejan Janjušević