Announcement

Collapse
No announcement yet.

STR modifier

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • STR modifier

    On the manual page 47 it is stated that "STR must be followed by a backslash and a number that specifies how many characters (bytes) to collect.".

    Can this modifier be a variable or is it necessary be a constant?

    Test show that a variable works with no problems. Is it 100% trusted?

    Thanks
    Ioannis

  • #2
    Yes, I believe it can be trusted with a variable. I've used this form to receive a variable number of characters based on a length parameter received immediately prior to the string:

    [wait($80),length,STR idstring\length]
    Charles Leo
    ME Labs, Inc.
    http://melabs.com

    Comment


    • #3
      Thank you Charles. The term "number" in the manual made me think that his should be better a constant.

      Ioannis

      Comment

      Working...
      X