Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > RealBasic 2.0, Displaying integers

RealBasic 2.0, Displaying integers
Thread Tools
Senior User
Join Date: Jul 2001
Location: Mount Vernon, WA
Status: Offline
Reply With Quote
Jul 15, 2001, 04:10 PM
 
I'm using countFields and i want to display the result in a msgbox but it only seems to display strings not integers. Help
Thanks
     
Forum Regular
Join Date: May 2001
Location: Hong Kong
Status: Offline
Reply With Quote
Jul 15, 2001, 09:00 PM
 
Originally posted by alphamatrix:
<STRONG>I'm using countFields and i want to display the result in a msgbox but it only seems to display strings not integers. Help
Thanks</STRONG>
Why don't convert the integer to string?
     
Senior User
Join Date: Jul 2001
Location: Mount Vernon, WA
Status: Offline
Reply With Quote
Jul 15, 2001, 09:26 PM
 
Thanks MacMonster
i just didnt know how to convert a integer to a string.

[img]null[/img] My MacNN T-Shirt
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Jul 20, 2001, 07:41 PM
 
Dim I as Integer
Dim S As String

//Obtain S as before
I=CountFields(S,";") //Replace ; with the delimater between fields
MsgBox Str(I)
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2