Latest topics |
» What happened with the panoramic language ? by Wed Jan 03, 2024 4:09 pm
» Hello world. by Wed May 09, 2018 11:53 pm
» Biomorphes de PICKOVER by Sun Jun 18, 2017 2:33 am
» In less than 10 lines of code by Fri Jun 16, 2017 5:03 am
» Effect Dopler by Fri Jun 16, 2017 3:29 am
» SuperEllipse by Wed Jun 14, 2017 4:01 am
» Plants by Wed Jun 14, 2017 3:38 am
» Mira's attractor by Wed Jun 14, 2017 3:30 am
» Triangle of Sierpinski by Wed Jun 14, 2017 3:22 am
» Esthétique polaire by Wed Jun 14, 2017 3:16 am
» Butterfly effect : Lorenz equations by Wed Jun 14, 2017 3:08 am
» Collision detection by Tue Jun 13, 2017 5:09 am
» The Bees Laline Paull Epub Books by Mon Oct 10, 2016 8:58 pm
» PANORAMIC for Mac OSX 10 is available by Tue Aug 09, 2016 6:08 pm
» ide by Sat Jul 16, 2016 12:27 am
|
| | Creation of controls and number_objects | |
| | Author | Message |
---|
Fordi
Number of posts : 23 Registration date : 2010-07-12
| Subject: Creation of controls and number_objects Tue Jul 13, 2010 12:54 pm | |
| Hello,
am I right, that number_objects always contains the number of already created objects like forms, alphas, edits, buttons and so on? So, to create a new control I only have to count number_objects + 1 into a numeric variable and create the control with that variable. How could it be, that I get an error that the object is already defined, when I do that?
Let's say number_objects = 52. I have a variable f.e. alphanumber where I store number_objects + 1. Then I create the new alpha with
alpha alphanumber
This is, where I get the error. Any help is appreciated. Thank you.
Kind regards, Fordi | |
| | | Jack Admin
Number of posts : 99 Registration date : 2007-07-01
| Subject: Re: Creation of controls and number_objects Tue Jul 13, 2010 5:29 pm | |
| - Quote :
- So, to create a new control I only have to count number_objects + 1 into a numeric variable and create the control with that variable.
No. You dont need a variable for the number. You dont need to count the objects to assign a new number. See the valid example: - Code:
-
button 12:left 12,100 edit 4:top 4,100 - Quote :
- I get an error that the object is already defined
You have this error message when you create an object with a number already used: - Code:
-
button 12 edit 12: rem here you have an error | |
| | | Fordi
Number of posts : 23 Registration date : 2010-07-12
| Subject: Re: Creation of controls and number_objects Tue Jul 13, 2010 5:56 pm | |
| Hello Jack,
thank you for your reply. I understand that I get the error, because I try to create an object with a number already used. And you say that I don't need to count the numbers. I understand so far. But when I build a programm with some forms and several controls on each form ( f.e. 40 edits in one form ), how can I prevent loosing overview? I created the edits in a FOR/NEXT loop. Is that my mistake? Should I better create each manually? That's a lot to write. What would be the best way to create controls without loosing overwie, when I have so much controls in my form? Kind regards, Fordi | |
| | | Fordi
Number of posts : 23 Registration date : 2010-07-12
| Subject: Re: Creation of controls and number_objects Tue Jul 13, 2010 5:59 pm | |
| I've forgotten something. - Code:
-
button 12:left 12,100 edit 4:top 4,100 How can that work? Does that mean that the number is not global for all objects, but for each type of object? Kind regards, Fordi | |
| | | Jack Admin
Number of posts : 99 Registration date : 2007-07-01
| Subject: Re: Creation of controls and number_objects Thu Jul 15, 2010 9:00 am | |
| To create an object (button, edit, memo, list, combo, etc etc,...), you have just to give a new number that is a number which is not already used. That 's all. I begin to write my source. I want to create a BUTTON. Number 12 has never been used, - Code:
-
button 12 I need to create an EDIT. Number 4 has never been used, so I use this number: - Code:
-
edit 4 In my example, left 12,100 and top 4,100 are just to see the 2 objects. Otherwise they are superimposed because an object is created at (0,0): the upper left corner of the FORM. | |
| | | Sponsored content
| Subject: Re: Creation of controls and number_objects | |
| |
| | | | Creation of controls and number_objects | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |