Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Determining if variable or static string is passed to a Sub
#4
In my experiments even if you Dim a string as fixed and then change it to another length, no error is thrown and the change is made. (Not something you can do with Arrays!) In fact all processing of fixed length strings seem to be treated as variable length. I guess its up to coder to keep the length fixed when resetting a value.

So I don't understand how any String processing, fixed or variable, will throw error but you might try making sure the string going out is same size as string going in? That will keep fixed strings the same length.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Determining if variable or static string is passed to a Sub - by bplus - 05-21-2025, 07:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable length type declarations dano 5 688 08-06-2025, 09:53 PM
Last Post: dano
  Most efficient way to build a big variable length string? mdijkens 9 1,877 01-17-2025, 11:36 PM
Last Post: ahenry3068
  Huge array of variable length strings mdijkens 9 1,828 10-17-2024, 02:01 PM
Last Post: mdijkens
  REDIM, TYPE, and STRING Woes TerryRitchie 16 3,139 04-13-2023, 05:17 AM
Last Post: DSMan195276
Lightbulb To mimic "cmd.exe" behavior with eg. "DIRCMD" env. variable mnrvovrfc 4 1,180 09-29-2022, 02:51 AM
Last Post: mnrvovrfc

Forum Jump:


Users browsing this thread: 1 Guest(s)