OmniTrader Forum OmniTrader Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader Archives
OmniTrader 2018 Technical Support
OL - converting Single, Integer, Bpplean to String
Last Activity 5/11/2020 10:43 AM
2 replies, 904 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
kmcintyre

Legend
100100100100
Posts: 410

Joined: 8/30/2007
Location: Valley Center, CA

User Profile
 
Subject : OL - converting Single, Integer, Bpplean to String
Posted : 5/19/2018 10:44 AM
Post #44703

I'm trying to use DebugMsg to debug...

I need to convert an integer to a string so I can log the value.

I looked in the IDE but didn't see functions for string operations.

How can I convert non-String data types into String evquivalents?

How can I append strings? + or & or StrCat()???

Thanks!

^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OL - converting Single, Integer, Bpplean to St
Posted : 5/19/2018 3:04 PM
Post #44705 - In reply to #44703

dim X, Y as single
dim A, B as string
X= 4
Y= 2
A = X ' now string A holds "4"
B = "The Answer to Everything is " & A & Y
X = right(B,2) ' X now holds the value 42

... conversions usually are done automatically ... sometimes not if nested
... left(B,2) = "Th"; right(B,2) = "42"; strings.mid(B,5,6) = "Answer"

Hopefully that gets you on your way.

[Edited by Jim Dean on 5/19/2018 3:05 PM]

^ Top
kmcintyre

Legend
100100100100
Posts: 410

Joined: 8/30/2007
Location: Valley Center, CA

User Profile
 
Subject : RE: OL - converting Single, Integer, Bpplean to St
Posted : 5/19/2018 3:12 PM
Post #44706 - In reply to #44703

Indeed!

As always, THANKS!


Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.