Jump to content


- - - - -

# Logic ID's Exceeded


10 replies to this topic

#1 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 12 October 2005 - 05:58 PM

I have exceeded the number of logic numbers and am in need of 2 more logics.

Can someone tell me the variable name that ProIV identifies LS numbers with?

Thanks in advance.

#2 Richard Bassett

Richard Bassett

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 696 posts
  • Location:Rural France

Posted 12 October 2005 - 06:30 PM

@CUR_LS
Nothing's as simple as you think

#3 Guest_Guest - Rick_*

Guest_Guest - Rick_*
  • Guests

Posted 12 October 2005 - 07:31 PM

...and although the question wasn't asked, if it's any benefit @CUR_FL is which file number of the @CUR_LS it's reading.

#4 Guest_Franco American_*

Guest_Franco American_*
  • Guests

Posted 12 October 2005 - 07:33 PM

uh...oh..... spaghetti o's....

#5 Lewis Mccabe

Lewis Mccabe

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 455 posts
  • Gender:Male
  • Location:Sarasota, Florida

Posted 12 October 2005 - 07:40 PM

Just in case you did not know, global logics consume a logic id. If you have some insignificant global logics in your function, you can put them in standard logic to free up a slot.

Lew

#6 CSuarezdelReal

CSuarezdelReal

    Advanced

  • Members
  • PipPipPip
  • 91 posts
  • Gender:Male

Posted 12 October 2005 - 10:18 PM

Hi Guest!

A nice way I use when I reach logic ids limit is to create and call Global Windows and include in there some of the logics needed; requieres some refactoring , but the results are clean and quite readable.

Regards,

Edited by CSuarezdelReal, 12 October 2005 - 10:21 PM.

Claudio Suárez del Real
"It is not the strongest of the species that survive, nor the most intelligent, but the ones most responsive to change."

#7 Guest_Franco American_*

Guest_Franco American_*
  • Guests

Posted 13 October 2005 - 02:56 PM

Again....uh...oh..... spaghetti o's....

#8 Mike Schoen

Mike Schoen

    Expert

  • Members
  • PipPipPipPip
  • 198 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 13 October 2005 - 05:55 PM

global_lscalls also use up a logic id.

Our record here is splitting a large function 4 times, and counting... :unsure:

#9 CSuarezdelReal

CSuarezdelReal

    Advanced

  • Members
  • PipPipPip
  • 91 posts
  • Gender:Male

Posted 13 October 2005 - 10:49 PM

Hi!

Still thinking a good solution is refactoring the function, and split it into a main one and several global calls... the calls should take away several logics so that the main function would gain plenty of additional logics.

Of couse how to refactor depends on the function itself.

Regards,
Claudio Suárez del Real
"It is not the strongest of the species that survive, nor the most intelligent, but the ones most responsive to change."

#10 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,640 posts
  • Gender:Male
  • Location:Spain

Posted 14 October 2005 - 10:46 AM

global_lscalls also use up a logic id


I'm fairly sure that Global LSCALLs dont use up logic 'slots'.

Its only 'used' logics and Global Logics that use them up....

With Global Logics, if you use the same global logic twice in a function, then it still only uses 1 Logic 'slot'.

Rob D.

#11 lawalton

lawalton

    Member

  • Members
  • PipPip
  • 29 posts
  • Gender:Female

Posted 14 October 2005 - 12:46 PM

I have found a quick way to save logics in screen and report functions by using @CURFLDNAME for field logics.
eg.
CASE @CURFLDNAME
WHEN "TagName1" : do logic
WHEN "Tagname2" : do another logic
etc.
ENDCASE



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users