Jump to content


Photo
- - - - -

GLOBAL_LSCALL


16 replies to this topic

#1 Vol Yip

Vol Yip

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male
  • Location:Hong Kong

Posted 12 November 2003 - 09:27 AM

Hi,

Could anyone help me the sytnax of GLOBAL_LSCALL.

I usually code using Superlayer. For some reason, I need to implmenet some changes in a PRO-IV function and I found the following statement in a logic:

GLOBAL_LSCALL(FUNCTA, 1016)

Where FUNCTA is a Global Function which I have created. However, what does 1016 mean? (Or any number (num) in the GLOBAL_LSCALL(xxxx, num) means?)

Regards,

Vol

#2 Phil

Phil

    Expert

  • Members
  • PipPipPipPip
  • 187 posts
  • Gender:Male

Posted 12 November 2003 - 09:38 AM

The 2nd part is the interface, which amongst other things allows you to call the same global in the same function twice and set different parameters on each.

eg; If you had a Start Date and an End Date in a screen and you allowed the user to take selection from a global window the date you receive back from the window would be set to #STARTDATE or #ENDDATE and so the interface would be different for each.

#3 Vol Yip

Vol Yip

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male
  • Location:Hong Kong

Posted 12 November 2003 - 10:00 AM

Thanks Phil.

Then how does I "make use" of this Interface? Is there any place at @MOD I can go and see this "1016" interface?

Regards,

Vol

#4 Rob Donovan

Rob Donovan

    rob@proivrc.com

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

Posted 12 November 2003 - 11:31 AM

Hi,

In the logic editor (@LOGIC), in the step field, type an I (for interface) on the line with the GLOBAL_LSCALL, this will give you a screen to enter the parameters for the global function.

Rob D.

#5 Vol Yip

Vol Yip

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male
  • Location:Hong Kong

Posted 12 November 2003 - 12:31 PM

Thanks Rob

#6 Guest_Banana_*

Guest_Banana_*
  • Guests

Posted 12 November 2003 - 12:42 PM

Isn't it amazing that Yol Kip is now listed as an "Expert" on this site.....

#7 CSuarezdelReal

CSuarezdelReal

    Advanced

  • Members
  • PipPipPip
  • 91 posts
  • Gender:Male

Posted 12 November 2003 - 02:11 PM

Well, as SuperLayer programmers know, we do not have to do something like "GLOBAL_LSCALL(FUNCTA, 1016)" EVER, because we can always do a Global Call as "LSCALL FUNCTA". Then SuperLayer opens a window with the parameters needed for us to fill them.

I have used SuperLayer for almost a decade and have found a GLOBAL_LSCALL just once. I would rather delete the call and replace it for the SuperLayer equivalent: LSCALL FUNCTA. I guess such a call appeared in SL as a non-so-smart conversion from Native to SuperLayer. Of course, in the "St" field of any "SuperLayer Call" you can always type an "I" to maintain the parameters passed, and you have no need to deal with any Native screen.
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."

#8 Phil

Phil

    Expert

  • Members
  • PipPipPipPip
  • 187 posts
  • Gender:Male

Posted 12 November 2003 - 04:42 PM

The other place to get to parameters for Interfaces is in the function header
( @FUN ) - Window where it says INTERFACE.

I think Global functions were version 4.0's biggest selling point and won't hear of anyone disrespecting them !!!

#9 Guest_Grow up_*

Guest_Grow up_*
  • Guests

Posted 12 November 2003 - 10:01 PM

I don't mind the disrespecting of global functions as much as people. This is not high school.

#10 Rob Donovan

Rob Donovan

    rob@proivrc.com

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

Posted 12 November 2003 - 10:26 PM

The 'rating' on this site is purely on the number of posts you have made.

If someone has spent 10 years on S/L and now has looked into Native, then I would not be surprised if they could not find the global interface window in @LOGIC.

Its hardly intuitive!!

There is nothing to tell you that you should put a 'I' in the step field to access this window.

As CSuarezdelReal explained, in S/L you dont even know about the interface ID...

Rob D.

#11 Brian Manners

Brian Manners

    Member

  • Members
  • PipPip
  • 46 posts
  • Gender:Male
  • Location:Melbourne

Posted 13 November 2003 - 12:47 AM

Isn't it amazing that Yol Kip is now listed as an "Expert" on this site.....

Looks like someone slipped on the banana skin.

Couldn't even reference the correct name - unless banana actually meant someone else :)
It's all good

#12 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 265 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 13 November 2003 - 01:52 PM

Isn't it amazing that Yol Kip is now listed as an "Expert" on this site.....

Looks like someone slipped on the banana skin.

Couldn't even reference the correct name - unless banana actually meant someone else :)

Perhaps Banana was a freudian reference to being a Yellow Coward...

At least if I'm an a$$hole, I'll be up front about it.

Rick.

#13 Phil

Phil

    Expert

  • Members
  • PipPipPipPip
  • 187 posts
  • Gender:Male

Posted 13 November 2003 - 02:12 PM

And in reply to Grow Up - go tell someone who gives a global func :)

#14 Kevin Bruss

Kevin Bruss

    Expert

  • Members
  • PipPipPipPip
  • 113 posts
  • Gender:Male
  • Location:Oklahoma City, OK

Posted 13 November 2003 - 04:05 PM

Good timing for me to skim across this posting..
I just tripped over the global_lscall the other day myself.

How IS that ID determined? I am guessing it starts off at like 1010, or 1000, but not sure why. Is it because logics IDs are 3 chars?

Unfortunately neither via @LOGIC nor @FUN, cann you view all the global funct used; esp. if there is more than one.. That is one kudos to Superlayer; you can always use the 'I' in the step field (without having to retype the global funct name), but you can also do 'W'
in SLREGENS and get a listing of all interfaces used, AND window into
each, seeing their specs.. This can save alot of time if one has to do some updates to a global funct and has added additional interface parms...

#15 Guest_pro-iv hater._*

Guest_pro-iv hater._*
  • Guests

Posted 14 November 2003 - 04:12 PM

the number has and always will be totally meaningless. type setting up an interface called "hippo" to prove the point. I think 1001,1002 is some kind of "VB-isim" that some coder used to make it feel like a real language. :(



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users