|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
RE: List Box Basic QuestionOrtwin,
Yes, thanks for that tip, as that is what I typically for all other objects. It just seem much more intuitive to assign every object a "name" and then simply reference that name, as opposed to the variable. Best, Steve ***************************************************** Stephen J. Orth The Aquila Group, Inc. Office: (608) 834-9213 P.O. Box 690 Mobile: (608) 347-6447 Sun Prairie, WI 53590 E-Mail: s.orth@... ***************************************************** -----Original Message----- From: 4d_tech-bounces@... [mailto:4d_tech-bounces@...] On Behalf Of Ortwin Zillgen Sent: Tuesday, November 03, 2009 11:24 AM To: 4d_tech@... Subject: Re: List Box Basic Question less headscratching don't call directly like GET LISTBOX CELL POSITION(lb_MyListBox;$column_L;$row_L;$P_column) instead use the objectname-version like GET LISTBOX CELL POSITION(*,$my_lbObjName;$column_L;$row_L;$P_column) Regards Ortwin Zillgen ********************************************************************** Get the speed and power of 4D v11 SQL before upgrade prices increase - http://www.4d.com 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
Object reference vs Variable reference was:List Box Basic Questionhas anyone else noticed that some 4D commands -
specifically those aimed at objects (Get Object Properties for example) work better (or only) with object references then with variable references? Move object is another that comes to mind. On Tue, 3 Nov 2009 18:24:23 +0100, Ortwin Zillgen wrote: > > less headscratching > don't call directly like > GET LISTBOX CELL POSITION(lb_MyListBox;$column_L;$row_L;$P_column) > instead use the objectname-version like > GET LISTBOX CELL POSITION(*,$my_lbObjName;$column_L;$row_L;$P_column) ********************************************************************** Get the speed and power of 4D v11 SQL before upgrade prices increase - http://www.4d.com 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
Re: Object reference vs Variable reference was:List Box Basic QuestionChip,
Please keep in mind that multiple objects with different names can have the same value variable. 4D having to address only one object is going to be faster than it having to scan all objects of the same variable to apply the action. Kind regards, Charlie Vass ------------------------------ Technical Services Team Member 4D, Inc. On Nov 3, 2009, at 1:10 PM, Chip Scheide wrote: > has anyone else noticed that some 4D commands - > specifically those aimed at objects (Get Object Properties for > example) > work better (or only) with object references then with variable > references? > > Move object is another that comes to mind. > ********************************************************************** Get the speed and power of 4D v11 SQL before upgrade prices increase - http://www.4d.com 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
Re: Object reference vs Variable reference was:List Box Basic QuestionHi Charlie-
Thanks - however, I normally do NOT name objects unless Im going to reference them (by object), and I dont have multiple objects with the same variable name on a form, the few exceptions are usually buttons to trap extra key strokes. unless I am misunderstanding, and you are referring not to a specific in use form, but to the variable/object space for the current user. More specifically, I have noticed that some commands, just dont seem to work, or work intermittently when using a variable reference rather than an object reference. as an example (not real code and off the top of my head) - Move Object(*;"Obj_name";blah blah blah) will consistently work - Move Object(my_var_name;blah balh blah) will not. On Thu, 5 Nov 2009 12:12:47 -0500, Charles Vass wrote: > Chip, > > Please keep in mind that multiple objects with different names can > have the same value variable. 4D having to address only one object > is going to be faster than it having to scan all objects of the same > variable to apply the action. > > Kind regards, > > Charlie Vass > ------------------------------ > Technical Services Team Member > 4D, Inc. > > On Nov 3, 2009, at 1:10 PM, Chip Scheide wrote: > >> has anyone else noticed that some 4D commands - >> specifically those aimed at objects (Get Object Properties for example) >> work better (or only) with object references then with variable >> references? >> >> Move object is another that comes to mind. >> > > ********************************************************************** > Get the speed and power of 4D v11 SQL > before upgrade prices increase - http://www.4d.com > > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4D.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4D_Tech-Unsubscribe@... > ********************************************************************** > Get the speed and power of 4D v11 SQL before upgrade prices increase - http://www.4d.com 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
|
|
|
Re: Object reference vs Variable reference was:List Box Basic QuestionIn general this is correct, however (may have been fixt in a hotfix) on 11.4
no hotfix create a new form 1. place a listbox on it 2. add some extra columns 3. duplicate the listbox. In the original listbox you will have object names something like: Header1, Header2, Header3, Header4 - Column1, Column2, Column3, Column4 with variable names the same as the object names In the new listbox you will have object names something like: Header5, Header5, Header5, Header5 - Column5, Column5, Column5, Column5 with variable names the same as the previous listbox :-( On Thu, Nov 5, 2009 at 4:20 PM, Ortwin Zillgen <info@...> wrote: > afaik, this is not true anymore for v11: objectnames are unique, > > try it yourself > - place an object > - name it > - place a second object > - give it the same name > - look again > -- The man who smiles when things go wrong has thought of someone to blame it on. - Robert Bloch -- Sheldon King King Computer Consulting 918-413-4330 sgking@... www.seokcc.com ********************************************************************** Get the speed and power of 4D v11 SQL before upgrade prices increase - http://www.4d.com 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
|
|
|
Re: Object reference vs Variable reference was:List Box Basic QuestionHi,
Slightly off topic but I think its important; Objects that are names but not linked to a variable/expression (i.e. variable = blank in the property list) will not respond to form events in compiled mode. miyako On 2009/11/06, at 2:12, Charles Vass wrote: >> has anyone else noticed that some 4D commands - >> specifically those aimed at objects (Get Object Properties for example) >> work better (or only) with object references then with variable >> references? ********************************************************************** Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
Re: Object reference vs Variable reference was:List Box Basic QuestionActually,
it seems like any expression other than a valid process variable will make the button/variable object respond to user action when interpreted but not compiled. (just mentioned so that nobody would depend on an undocumented behavior...) miyako On 2009/11/13, at 12:54, miyako wrote: > Hi, > > Slightly off topic but I think its important; > > Objects that are names but not linked to a variable/expression > (i.e. variable = blank in the property list) > will not respond to form events in compiled mode. > > miyako > > On 2009/11/06, at 2:12, Charles Vass wrote: > >>> has anyone else noticed that some 4D commands - >>> specifically those aimed at objects (Get Object Properties for example) >>> work better (or only) with object references then with variable >>> references? Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
RE: Object reference vs Variable reference was:List Box Basic QuestionI reported this as a bug and got the usual "can u provide me a small database"...
-----Original Message----- From: 4d_tech-bounces@... [mailto:4d_tech-bounces@...] On Behalf Of miyako Sent: Thursday, November 12, 2009 7:55 PM To: 4D iNug Technical Subject: Re: Object reference vs Variable reference was:List Box Basic Question Hi, Slightly off topic but I think its important; Objects that are names but not linked to a variable/expression (i.e. variable = blank in the property list) will not respond to form events in compiled mode. miyako On 2009/11/06, at 2:12, Charles Vass wrote: >> has anyone else noticed that some 4D commands - >> specifically those aimed at objects (Get Object Properties for example) >> work better (or only) with object references then with variable >> references? ********************************************************************** Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** ********************************************************************** Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
| Free embeddable forum powered by Nabble | Forum Help |