home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.cbm      Discussion about Commodore micros      53,866 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 52,200 of 53,866   
   Anssi Saari to Thomas   
   Re: How do I use a variable in a command   
   23 Mar 18 09:49:48   
   
   From: as@sci.fi   
      
   Thomas  writes:   
      
   > On the C64 I have an ML Routine that displays a directory.   
   > The format for the command is SYS850,"$:*"   
   > I need to insert a variable into the $ string. So that in a program I   
   > can display filenames that start with a letter.   
   >   
   > For example, I want to display all file names that start with I. so   
   >   
   > 10 A$="I":sys850,"$:"+A$+"*"   
   >   
   > will not work.   
   > Does anyone know a way to do this?   
      
   What about putting the whole argument into A$, does that work? So   
   for example just   
      
   10 A$="$:I*":sys850,A$   
      
   But really, in stock C64 basic SYS doesn't take parameters so   
   I suppose you have something non-stock running? So maybe you can look   
   into how that works to figure out how to do what you want?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca