Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another issue: Changing one variable instantly changes the value of another variable
#4
First thing I'd try is to pass via a temp variable:

SUB CleanPath (tempPath$)
Path$ = tempPath$

The issue is probably from a call such as :

ClearPath temp$

With passing matching types with SUB/FUNCTION, we pass the offsets to the variable and not the value of the variable. If temp$ is passed, Path$ **IS** temp$.
Reply


Messages In This Thread
RE: Another issue: Changing one variable instantly changes the value of another variable - by SMcNeill - 06-17-2022, 03:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Lubuntu INKEY$ issue TempodiBasic 7 648 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  Variable length type declarations dano 5 689 08-06-2025, 09:53 PM
Last Post: dano
  Determining if variable or static string is passed to a Sub dano 9 1,225 06-20-2025, 06:31 PM
Last Post: CookieOscar
  Most efficient way to build a big variable length string? mdijkens 9 1,894 01-17-2025, 11:36 PM
Last Post: ahenry3068
  Huge array of variable length strings mdijkens 9 1,834 10-17-2024, 02:01 PM
Last Post: mdijkens

Forum Jump:


Users browsing this thread: