Hot Topic (More than 10 Replies) 2 issues to report (Read 3445 times)
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
2 issues to report
Sep 30th, 2004 at 8:03pm
Print Post Print Post  
I'm seeing 2 strange things happening in my forms.

1. I have to press tab 3 or 4 times to get the focus to move out of one particular LE. The Spec manager highlights the correct 'targeted LE', but the focus lingers in the current LE. Programming does not seem to be the problem.

2. After 'loading' a saved Mass Update, it is not appear in any of the LE names in the spec manager. (The "P" is not visible in any of the boxes). I can only think that Maybe I deleted, renamed, changed the type, of the LE that was 'storing' the mass update program and now I can't recall the program. Is it lost forever? (I did delete a few text LE's and re-added them as combo boxes bound to the same field. Did this also delete my Mass update programming?)

Hope your having fun at the conference. I guess it's just me and the crickets here on the forums for a few days.

Steve
  
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: 2 issues to report
Reply #1 - Sep 30th, 2004 at 10:19pm
Print Post Print Post  
Quote:
1. I have to press tab 3 or 4 times to get the focus to move out of one particular LE. The Spec manager highlights the correct 'targeted LE', but the focus lingers in the current LE. Programming does not seem to be the problem.


Maybe you need a ForceRedraw() in there somewhere.
  


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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #2 - Sep 30th, 2004 at 10:35pm
Print Post Print Post  
Thanks Carl, Mark taught me to use Forceredraw and I put it everywhere i could think of. Still no luck.

I'm seeing it hang only after being sent with a goto or throwfocus from a particular command button. whether the program in the button fires or is bypassed by the user. It seemed to help a little when I changed the text to 'left justify' in the problem LE, (Now i can tab out on the 2nd hit of the tab, rather than the 3rd or 4th keystroke).

Also putting the Goto at the end of On event programming AND/OR On element exit of the command button makes no difference.

Additionally, the problem does not appear when simply tabbing into the problem LE. Its only when leaving the command button.

Thanks,
Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #3 - Sep 30th, 2004 at 10:40pm
Print Post Print Post  
I'm also seeing a somewhat similar issue in table mode. While editing a "Cell", or LE and I use the scroll bar, my editing appears way at the bottom of the screen, but the focused LE is at the top of the screen. exiting the cell seems to redraw the screen and all is well, but it has caused some errors in data entry.

Seems like a adding a forceredraw() when scrolling the page would take care of it, but that can't be done (at least not by me).

Thanks,
Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2 issues to report
Reply #4 - Oct 5th, 2004 at 11:07am
Print Post Print Post  
Steve,

If you send this into Support, along with steps to reproduce, we can try to sort out what you're seeing.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #5 - Oct 5th, 2004 at 1:14pm
Print Post Print Post  
Thanks Erika. I'll wait for 1.0.5 to see if that fixes it. If not I'll send it in.

Glad to have you and Mark back. It was so quiet around here without you all!

Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #6 - Oct 6th, 2004 at 2:20pm
Print Post Print Post  
Erika,

Something new to point out.

I'm trying to post a money value from a subform LE (money field named 'LE0') to the parent form (money field named 'Selling Price') using the following line.


selling price = @FORMFIELDVALUE("vARIANTS", "LEO", 1)

I keep getting $0 instead of the actual value. However, this command works correctly.

var vprice as double
vprice = @FORMFIELDVALUE("vARIANTS", "LE0", 1)
selling price = vprice

Am I breaking some sort of sbasic rule, or is this a bug in sesame?

Thanks,
Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2 issues to report
Reply #7 - Oct 6th, 2004 at 2:26pm
Print Post Print Post  
@FormFieldValue will always return a String. By assigning it directly to a non-text field, you are forcing it to take a guess at the conversion.

The second (working) method is giving SBasic an opportunity to make a better guess by assigning it to a Double first.

The real solution is, don't make it guess. Use @ToMoney (or whatever is the appropriate conversion) before assigning the value.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #8 - Oct 6th, 2004 at 3:33pm
Print Post Print Post  
Thanks Erika, but this line isn't working either. Perhaps the '@tomoney' is in the wrong place?


selling price = @tomoney(@FORMFIELDVALUE("vARIANTS", "LEO", 1))

Thanks,

Steve
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2 issues to report
Reply #9 - Oct 6th, 2004 at 4:22pm
Print Post Print Post  
To what field type is selling price bound?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #10 - Oct 6th, 2004 at 4:25pm
Print Post Print Post  
Both fields are type: Money.

I'm currently changing the name of Selling Price to SellingPrice. I'll let you know.

Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #11 - Oct 6th, 2004 at 4:29pm
Print Post Print Post  
Changine the LE name to SellingPrice didnt help.

This program is only failing on about 25% of my records. others work fine. Very difficult to figure out when there isn't consistency.

Steve
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: 2 issues to report
Reply #12 - Oct 6th, 2004 at 4:35pm
Print Post Print Post  
Steve,

I do notice that in the line you are posting the element named "LEO" (note the alphabetic letter "O") instead of "LE0" (note the numeric number zero) - could that be the issue?
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: 2 issues to report
Reply #13 - Oct 6th, 2004 at 5:06pm
Print Post Print Post  
Mark, I'm almost too embarrased to reply back to you!

Embarrassed

That fixed it!

How in the world did you spot that?????

Unbelievable!

Thanks for everyones help and sorry for the wasted time!

Steve

Embarrassed Embarrassed Embarrassed
  
Back to top
IP Logged