Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) 2.5 testing - where do my SBAS files go? (Read 3741 times)
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2.5 testing - where do my SBAS files go?
Reply #15 - Sep 18th, 2009 at 6:25pm
Print Post Print Post  
Scott - try something for us.

In your included file, change this
vLoadSortSpec = @SpecCommand(SPEC_OPERATION_LOAD, SPEC_TYPE_SORT, "Workorder # Descending")

to this
vLoadSortSpec = @SpecCommand(spec_operation_load, spec_type_sort, "Workorder # Descending")

and tell me if it works.

Note that all I did was make the use of the defines lowercase.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: 2.5 testing - where do my SBAS files go?
Reply #16 - Sep 18th, 2009 at 7:23pm
Print Post Print Post  
The program editor is now happy dappy with a big fat grin.  The wonkiness has been de-wonked.

And I'm very curious why.

THANKS GUYS!!
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2.5 testing - where do my SBAS files go?
Reply #17 - Sep 18th, 2009 at 7:45pm
Print Post Print Post  
Version 2.5 includes a significant optimization to compiling when #define is in use. In the process, a piece of case-sensitivity snuck in. It's very specific and I'll surprised if it affects even six people.

In a nutshell, the use of defined constants in executable code contained in external files and then included will cause a compile error unless they are typed in all lowercase.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: 2.5 testing - where do my SBAS files go?
Reply #18 - Sep 18th, 2009 at 8:00pm
Print Post Print Post  
Thank you for the explanation.  It's a bit over my head but I think I get it.  Just to be safe, should I make sure that all future SBAS programming is done in lower case?  Will anything be affected in my current 2.0 application if I rewrite them all in lower case now?

Thanks again, you guys are the best.  I'll be on the lookout for more bugs just to keep you folks busy.
  

**
Captain Infinity
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: 2.5 testing - where do my SBAS files go?
Reply #19 - Sep 18th, 2009 at 8:06pm
Print Post Print Post  
Infinity wrote on Sep 18th, 2009 at 8:00pm:
...should I make sure that all future SBAS programming is done in lower case?


That would be overkill. Instead, try to use include files for defines and only include executable code that you are using across multiple applications (in which case the defines used will need to be in lower case until we get the next release out).
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: 2.5 testing - where do my SBAS files go?
Reply #20 - Sep 18th, 2009 at 8:17pm
Print Post Print Post  
I'm afraid I don't understand what you mean by "defines".
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: 2.5 testing - where do my SBAS files go?
Reply #21 - Sep 18th, 2009 at 8:25pm
Print Post Print Post  
Infinity wrote on Sep 18th, 2009 at 8:17pm:
I'm afraid I don't understand what you mean by "defines".


If you look in the sbasic_include.sbas file, you will see that most of the lies start with #define. This is a define. It defines something like SPEC_OPERATION_LOAD as a less human-readable value like 0. That way, you can use the define in your code, like this:
vLoadSortSpec = @SpecCommand(SPEC_OPERATION_LOAD, SPEC_TYPE_SORT, "Workorder # Descending")

You can clearly see what spec operation you are using, but Sesame sees it as 0.

The only thing affected by this issue is where you actually use the define in your executable code. The red text above indicates where this is. Nothing else will be affected by the case issue.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: 2.5 testing - where do my SBAS files go?
Reply #22 - Sep 18th, 2009 at 10:01pm
Print Post Print Post  
Ah, I remember now, knew it sounded familiar.  Thanks!
  

**
Captain Infinity
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print