Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Mar 29, 2020 12:27 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: On my software
PostPosted: Sat Jul 28, 2012 6:05 am 
Offline

Joined: Sun Mar 18, 2007 6:18 am
Posts: 62
Location: Italy
I have the following code in PushButton - Action:

Dim i As Integer

While i < 100

tf1.Text = Str(i)
i = i + 1

Wend


I would:

1 - In a TexField a column the values ​​of the i

2 - In another TextFiel another column with the logical value (true or false) of While for each i.

Is it possible ?

Sorry for my language.


Top
 Profile  
Reply with quote  
 Post subject: Re: On my software
PostPosted: Sat Jul 28, 2012 9:10 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
Please try again to explain what you are attempting to accompilsh

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: On my software
PostPosted: Sat Jul 28, 2012 9:35 am 
Offline

Joined: Sun Mar 18, 2007 6:18 am
Posts: 62
Location: Italy
I have the following code in PushButton - Action:
Dim i As Integer

While i < 100

i = i + 1

Wend


I would in the Windows1:

1 - A column with the values ​​of i

2 - In another column the logical value (true or false) of i<100

Is it possible ?


Top
 Profile  
Reply with quote  
 Post subject: Re: On my software
PostPosted: Sat Jul 28, 2012 10:11 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
1 - A column with the values ​​of i

You need to use a listbox. With two columns.

2 - In another column the logical value (true or false) of i<100



Dim i As Integer

While i < 110

if i < 100 then
lb1.addrow str(i) , "true"
else
lb1.addrow str(i) , "false"
end if
i = i+1
Wend


Top
 Profile  
Reply with quote  
 Post subject: Re: On my software
PostPosted: Sat Jul 28, 2012 12:47 pm 
Offline

Joined: Sun Feb 19, 2006 4:00 pm
Posts: 1282
Location: Heidelberg, Germany
Please do the tutorial or even better the curriculum first.


Top
 Profile  
Reply with quote  
 Post subject: Re: On my software
PostPosted: Sun Jul 29, 2012 4:48 am 
Offline

Joined: Sun Mar 18, 2007 6:18 am
Posts: 62
Location: Italy
Without IF THEN....

It is better ?

Regards


Listbox1.DeleteAllRows

Dim i As Integer

Dim a As Boolean


While i < 100

a = i < 100

Listbox1.AddRow Str(i), Str(a)

i = i + 1

Wend


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group