Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FormatX$ in QB64
#3
(09-29-2024, 07:24 AM)SMcNeill Wrote: https://qb64phoenix.com/forum/showthread.php?tid=2554

That is more to the point of what I was writing:

Code: (Select All)

Print Format(12345, "###,###")
Print Format(12345, "$###,###")
Print Format(Timer, "###,###.#####")
Function Format$ (num, using$)
  Static tempimage
  If tempimage = 0 Then tempimage = _NewImage(80, 1, 0)
  d = _Dest: s = _Source
  _Dest tempimage: _Source tempimage
  Cls
  Print Using using$; num;
  For i = 1 To 80
      p = Screen(1, i)
      If p = 0 Then Exit For
      text$ = text$ + Chr$(p)
  Next
  _Dest d: _Source s
  Format$ = text$
End Function

I wrote a FormatX$ function to parse date/time such as: HH:MM:SS
Reply


Messages In This Thread
FormatX$ in QB64 - by eoredson - 09-29-2024, 06:45 AM
RE: FormatX$ in QB64 - by SMcNeill - 09-29-2024, 07:24 AM
RE: FormatX$ in QB64 - by eoredson - 09-29-2024, 07:52 AM
RE: FormatX$ in QB64 - by eoredson - 09-30-2024, 12:18 AM
RE: FormatX$ in QB64 - by eoredson - 09-30-2024, 01:31 AM
RE: FormatX$ in QB64 - by eoredson - 09-30-2024, 01:37 AM
RE: FormatX$ in QB64 - by eoredson - 10-02-2024, 03:49 AM
RE: FormatX$ in QB64 - by SMcNeill - 10-02-2024, 06:12 AM
RE: FormatX$ in QB64 - by Dimster - 10-02-2024, 09:14 AM
RE: FormatX$ in QB64 - by eoredson - 01-23-2025, 04:14 AM



Users browsing this thread: 1 Guest(s)