Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

convert string to int

Integrated Application Platform › Forums › General › convert string to int

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 10 months ago by hshamay.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 23, 2019 at 1:03 pm #1452
    hshamay
    Participant

    Hi, I wont to convert string to int;

    this is my array:
    words(“pop”, “temp”,”6″)

    and this is my code:
    temp=SHORT(words[2])
    num= 5+ temp

    and the warning is:
    “string not long enough to convert to this structure”

    can you help me?

    March 23, 2019 at 1:40 pm #1453
    amckinlay
    Keymaster

    SHORT is part of the DLL interface – probably not what you want.

    You can use Number to convert strings to numbers.

    e.g. Number(“5”) + 2 => 7

    Similarly, you can use String to convert the other way.

    e.g. String(5) => “5”

    March 23, 2019 at 1:51 pm #1454
    hshamay
    Participant

    tanks

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language