Announcement

Collapse
No announcement yet.

STRING VS. INTEGER

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

  • STRING VS. INTEGER

    Hey,
    I am having trouble with this
    record% = 5
    label$ = record%
    print label$

    Why doesn't this print 5, but comes up with a relational error?
    Any help will be appreciated.

    Thanks

    ------------------

  • #2
    Sonny,
    You need to convert from integer to string using the STR$() function

    Try replacing:
    label$ = record%

    with
    label$ = STR$(record%)

    Paul.

    Comment


    • #3
      Hey Sonny,

      better is:

      label$=using$("#",record%) 'fix length one digit

      Regards

      Matthias

      ------------------

      Comment

      Working...
      X