Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using VarPtr in Play staement
#1
I'm trying to set the length of notes in a Play statement using a loop and Varptr, but can't hit on the correct syntax. This is what I'm currently trying:

Code: (Select All)
For D% = 1 To 3
    Play "L" + "X" + VarPtr$(D%) + "o3cdefgab"
Next

What am I doing wrong?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
Using VarPtr in Play staement - by PhilOfPerth - 12-05-2024, 11:39 PM
RE: Using VarPtr in Play staement - by grymmjack - 12-06-2024, 04:25 AM
RE: Using VarPtr in Play staement - by grymmjack - 12-06-2024, 12:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play wav file in the background without a window on the forground Rudy M 12 1,139 09-18-2025, 07:08 PM
Last Post: Pete
  What extra features does VARPTR provide? PhilOfPerth 10 2,390 06-23-2023, 11:42 PM
Last Post: PhilOfPerth
  Silent Pause in PLAY being skipped PhilOfPerth 13 2,662 06-17-2023, 05:08 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)