Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command$(count%) - I can't get a value when using the optional argument "(count%)"
#3
why do you need two variables?  to determine how many parameters.  are passed from the command line?

Code: (Select All)
Option _Explicit
Dim cmd$, count1%
Open "text.txt" For Output As #1
count1% = _CommandCount
cmd$ = Command$(count1%)
'rest of program
':
that's all there is to it.

if you need the length of the entire command line, use len() on the string.
Reply


Messages In This Thread
RE: Command$(count%) - I can't get a value when using the optional argument "(count%)" - by hsiangch_ong - 08-22-2025, 11:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,152 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Command$ issues eoredson 8 1,371 05-02-2025, 01:42 AM
Last Post: eoredson
  Instr to count occurrences PhilOfPerth 5 949 04-29-2025, 11:17 PM
Last Post: TempodiBasic
  Locate command on the ttf graphical screens Helium5793 5 712 03-09-2025, 05:47 PM
Last Post: SMcNeill
Question fast file find with wildcards, optional date range, match # bytes, binary compare? madscijr 8 1,314 12-19-2024, 03:55 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)