Hot Topic (More than 10 Replies) Question on element conversions (Read 1286 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Question on element conversions
Nov 7th, 2005 at 6:51pm
Print Post Print Post  
My question is
To convert a text box into a combo box can I simply delete the text box, make a new combo box name it the same name and bind it to the name of the old element?

Thanks for the help
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Question on element conversions
Reply #1 - Nov 7th, 2005 at 7:27pm
Print Post Print Post  
Yes you can. Just be sure to save your form after you delete the text box otherwise you will not be able to name the combo box the same thing.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #2 - Nov 7th, 2005 at 8:22pm
Print Post Print Post  
Thanks Ray!

  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Question on element conversions
Reply #3 - Nov 7th, 2005 at 10:10pm
Print Post Print Post  
You are welcome Flip.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #4 - Nov 7th, 2005 at 10:58pm
Print Post Print Post  
it works if you name it something different but you cant name it the same thing. you would have to delete from the field manager to be able to name it the same thing and that would not be a good thing.  Roll Eyes
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Question on element conversions
Reply #5 - Nov 7th, 2005 at 11:31pm
Print Post Print Post  
You CAN name the element the same thing.  Ray's instructions explain that...

1.  Make note of the field that the current element is bound to.
2.  Delete the current element.
3.  Save the layout design.  (If not saved, then you will not be able to use the same name, will get a conflict message).
4.  Add the new element, bound to the same field, with the old name.
5.  Save the layout design.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #6 - Nov 12th, 2005 at 2:24am
Print Post Print Post  
ok
Followed the instructions to the letter

Noted the field name the element is bound to – Dispatch.
Deleted the element.
Saved the layout design. (yes Im sure)
Added the new element, bound to the same field - Dispatch, with the old name - Dispatch.
Saved the layout design.

When I look at the name of the element is call – Dispatch0
Not Dispatch without the 0
Does this matter? Running tests on a sample database.
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #7 - Nov 12th, 2005 at 3:43am
Print Post Print Post  
I get the Homer Simpson DOH! Noise then the message box saying

Some or all of the text programming in this form has failed to compile
No event programming will run
LOSER!!!!

when I open the form.

Im thinking Ray wrote a new @MsgBox for me in Vegas, but Im not pointing fingers!
Roll Eyes
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Question on element conversions
Reply #8 - Nov 12th, 2005 at 4:02am
Print Post Print Post  
Quote:
When I look at the name of the element is call – Dispatch0 
Not Dispatch without the 0
Does this matter?

You should be able to rename this without the zero, as long as there is no other element by the name 'Dispatch'.

This may also fix the error message saying that there is a problem with the programming. You probably have the Dispatch element referenced there somewhere, and currently the name is actually 'Dispatch0'. Which, of coarse, will cause the message you are seeing. It would be a good idea to 'Test' the programming as well, after you change the name of the element, just to be sure there isn't something else causing the error.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #9 - Nov 12th, 2005 at 4:13am
Print Post Print Post  
Wow,
Found the programming code that was the problem.
Seems to be working ok.

Comments welcomed!
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #10 - Nov 12th, 2005 at 4:18am
Print Post Print Post  
There is no other element named Dispatch but the form is named Dispatch, Im thinking this might be an issue.
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Question on element conversions
Reply #11 - Nov 12th, 2005 at 1:28pm
Print Post Print Post  
Quote:
There is no other element named Dispatch but the form is named Dispatch, Im thinking this might be an issue.


It is an issue. It is a known bug in 1.1.2. Please, rename one or the other.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Re: Question on element conversions
Reply #12 - Nov 12th, 2005 at 6:07pm
Print Post Print Post  
I will leave the 0 on the end of dispatch0 element so the name of the form is different from the element. I also have renamed the associated programming with dispatch0, ran it in a sample database and it seems to function as planed. Life is good!
I have done the same with another element named Job_Type and it to when changed came up with Job_Type0. This is not an issue for me now that I have experience doing the first element change. Im just wondering if I might be overlooking something, can it be that simple?

Thank you both for your help and input
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged