Hot Topic (More than 10 Replies) Text Editor (Read 1052 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Text Editor
Oct 30th, 2011 at 7:40pm
Print Post Print Post  
I see in the element adder that one of the element types is a TEXT EDITOR.

I believe this is what I used to compile a full address by inserting values from the separate elements.

I checked the programming manual, and I cannot find any instructions at all on how to use the Text Editor.

Can you point me in the right direction?

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Text Editor
Reply #1 - Oct 30th, 2011 at 7:51pm
Print Post Print Post  
Its much like the multiline element. It is a text element, intended for many lines of text. Once the number of lines exceeds the size of the element, it will get scrollbars. It is the same widget that the programming editor uses (sans syntax highlighting, etc.) but can be placed on a form like any other element.

It is mentioned on page 85 of the User's Guide.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #2 - Oct 31st, 2011 at 12:04am
Print Post Print Post  
Mark -

I was hoping that I could get information that would help me resolve my own problem - which, I believe will be difficult to describe - but no cigar ... so I will try my best, here.

1)  I have several database that simply provide me with a complete mailing addess - using separate elements from the database - and the complete address appears in a pop-up window.  I can simply copy the address and paste it to a letter, envelope, etc.

2)  I copied the following code (which works in several of my databases) and inserted it into the new one that I need it in.  The Code is entered in the ViewAddress element - On Element Entry

Code
Select All
	ViewAddress = First Name

	if not @isblank(MI)
	{
	ViewAddress = 	ViewAddress + " " + MI
	}


	If not @isblank(Maiden)
	{
	ViewAddress = ViewAddress + " " + Maiden
	}


	ViewAddress = ViewAddress+ " " + Last Name


	If not @isblank(Suffix)
	{
	ViewAddress = ViewAddress+ ", " + Suffix
	}


	If not @isblank(Company Name)
	{
	ViewAddress = ViewAddress + @newline() + Company Name
	}


	ViewAddress = ViewAddress + @newline() + Address1


	If not @isblank(Apt)
	{
	ViewAddress = ViewAddress + ", " + Apt
	}


	ViewAddress = ViewAddress + @newline() + City + ", " + State + "  " + Zip

	@fedit

	Clear(ViewAddress)

	throwfocus(Remarks)
 



Then, I simply have the following code in the ViewAddress Element - On Element Exit

Code
Select All
Clear(ViewAddress) 



In the "new" database I am getting a compilation error and don't understand why.

In my efforts to "figure it out" - I went to the original database to look for something named ViewAddress but cannot find it anywhere on the form.  Since I am missing the basic concept, I am at a total loss.

To complicate the situation even further I tried to see if coding for the command button would help, and here's what I found.

When I click on property viewer for the Command Button, I see:

Label:  Full
Name: stfullAddressLabel

BUT, when I go to property editor (and use F5 to see what's there), I see

Label:  Compile
     Full
  Address
Name:  stfullAddressLabel

I see the latter on the button but why the difference between these two?

I cannot find any programming behind the command button.

I feel like I am in the twilight zone (and maybe I am).  lol   Shocked

I hope this gives you enough info to offer some help.

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Text Editor
Reply #3 - Oct 31st, 2011 at 1:33pm
Print Post Print Post  
Hello Spencer,

When you compile that programming, what error message do you get? Knowing what error you get would help us out in figuring out what is wrong.

-Ray
  

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



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #4 - Nov 1st, 2011 at 2:27pm
Print Post Print Post  
Ray -

Error while parsing module "ViewAddress (0)";
Type mismatch error (operation is not defined for the types of the operands
Line 8, position 37:  +
viewaddress = viewaddress + " " + mi
                                                    ^

(There is definitely an element named mi ... and if I change it to any other element name, I get the same error message at the same location).

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Text Editor
Reply #5 - Nov 1st, 2011 at 3:37pm
Print Post Print Post  
Hello Spencer,

Two things to check for you

Is the ViewAddress element formatted as Text?
Is the Mi element bound to type Text?

-Ray
  

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



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #6 - Nov 1st, 2011 at 4:14pm
Print Post Print Post  
Ray -

Quote:
Is the ViewAddress element formatted as Text?

When I go to the Program Layout, there is, of course, an element for viewaddress.  Since long before I posted my "plea for help," I have been trying to find an element on my form for viewaddress however, I have not been able to do so.  I thought that it might have something to do with the fact that it is a text editor.  That is why I have been looking for instructions (in the Sesame Programming Guide) for how to use a text editor (through programming).  I cannot; however, find a word anywhere.  Once again, I feel that I may be missing the basic concept of how it works.

Quote:
Is the Mi element bound to type Text?

In the Property Viewer, I can see that the MI element bound to type is Text!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Text Editor
Reply #7 - Nov 1st, 2011 at 4:19pm
Print Post Print Post  
Hello Spencer,

It is doubtful that your ViewAddress element is actually a Text editor. My bet is, it's a rather small element on your form perhaps hidden near the bottom or the top. It is populated by programming and then you are shown it's contents using the F6 field editor by the @FEdit SBasic command.

In Sesame Designer on the left hand side scroll down to the Advanced Element Selector
Change 'Select By' to Element Name
In 'Name' type ViewAddress
Click 'Perform Selected Action'
That will select the ViewAddress element and you can check it's properties in the Property Viewer.

-Ray
  

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



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #8 - Nov 1st, 2011 at 4:46pm
Print Post Print Post  
Ray -

Perhaps we're finally getting to id (at least, part of) the problem.  In the meantime, I learned something new about the Advanced Element Selector (which I've never used) and that is very helpful.

So - using that, I find that the viewaddress is bound to a static push button.

I copied this programming from another database that works just fine. 

If the original database had as you said (which makes perfect sense and I can easily understand


Quote:
      "a rather small element on your form perhaps hidden near the bottom or the top. It is populated by programming and then you are shown it's contents using the F6 field editor by the @FEdit SBasic command" 


........ then shouldn't there be programming somewhere in the database reflecting the @FEdit SBasic command?  If so, any suggestions as to how I might go about finding it?

Thanks very much for sticking with me on this.  I realize it is something extremely simple but I probably have a mental block.  Since it is a very useful feature for me ... it is very frustrating not to be able to recreate (which I have done several times in the past).

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Text Editor
Reply #9 - Nov 1st, 2011 at 5:05pm
Print Post Print Post  
Hello Spencer,

Snipped from the code you posted

Code
Select All
...removed all code before this line so you can see it
	@fedit

	Clear(ViewAddress)

	throwfocus(Remarks) 



Look at your other file that this is working in, I'm willing to bet that ViewAddress is not a Command Button.

What you will probably need to do is rename your command button to something else such as ViewTheAddress and then add an unbound text element to your form that is named ViewAddress and make sure your programming now refers to the ViewAddress text element.

-Ray
  

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



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #10 - Nov 1st, 2011 at 5:11pm
Print Post Print Post  
Ray -

I think - thanks to your help - you have enabled me to resolve the mystery.

Want to know WHY I couldn't find the ViewAddress element?

It's because I did such a great job of hiding it, that even I couldn't find it. 

IT WAS UNDERNEATH AND BEHIND THE COMMAND BUTTON.

I think I now have sufficient information to recreate what I want.  I will either let you know when I've accomplished it - or I'll be back here for more help with it.  (lol)

But I am still stuck with one question in the back of my head, and that is "What the 'h' is the purpose of a "field editor" element?  ANY text element on a form is a field editor when you press F6 - so why a different name for something that already exists ???????

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #11 - Nov 1st, 2011 at 5:12pm
Print Post Print Post  
SpencerWulwick wrote on Nov 1st, 2011 at 5:11pm:
Ray -

I think - thanks to your help - you have enabled me to resolve the mystery.

Want to know WHY I couldn't find the ViewAddress element?

It's because I did such a great job of hiding it, that even I couldn't find it. 

IT WAS SLIGHTLY SMALLER THAN AND DIRECTLY BEHIND THE COMMAND BUTTON.

I think I now have sufficient information to recreate what I want.  I will either let you know when I've accomplished it - or I'll be back here for more help with it.  (lol)

But I am still stuck with one question in the back of my head, and that is "What the 'h' is the purpose of a "field editor" element?  ANY text element on a form is a field editor when you press F6 - so why a different name for something that already exists ???????


  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Text Editor
Reply #12 - Nov 1st, 2011 at 5:30pm
Print Post Print Post  
SpencerWulwick wrote on Nov 1st, 2011 at 5:11pm:
But I am still stuck with one question in the back of my head, and that is "What the 'h' is the purpose of a "field editor" element?  ANY text element on a form is a field editor when you press F6 - so why a different name for something that already exists ???????


It's not just a name for something that already exists. It is a whole other type of element you can place on your form. A Field Editor is basically the F6 editor built into your form. You don't need to press F6 on it to be able to type a lot and have scrollbars appear. It is similar to adding a multi-line element to your form but instead this element has scroll bars that visually show you there is more information in that element than you can see at the present time.

Clear as mud?

-Ray
  

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



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Text Editor
Reply #13 - Nov 1st, 2011 at 5:35pm
Print Post Print Post  
Ray -

Thank you; I got it; I understand.  (Actually, it is as clear as water!)

Now, I can play around with it and find out more about it. 

As for my original issue, I am not quite there, but think it is a lot LOT easier than I ever realized - and I - and I alone - am the one who made it complicated for myself.

Getting old is tough - things just don't come as easily as they used to.  But I am NOT complaining - it is still MUCH BETTER than the alternative.  Smiley
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged