Normal Topic Memory Menu commands in 2.0 (Read 344 times)
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Memory Menu commands in 2.0
Apr 26th, 2006 at 8:53pm
Print Post Print Post  
As many of you know, right now, if you hit CTRL-Enter in a text LE after entering data in that LE across several records, a menu appears that allows you to select up to the last ten values that have been entered in that LE. Here in development land, we call that the "memory menu".

In 2.0, we've expanded the functionality of the memory menu so that it also works in right aligned and multiline text LEs. I've also added several SBasic commands to work with the memory menu:

MemoryMenuAdd(var LE as element ref, item as string) ; adds a new item to the memory menu for that LE.

@MemoryMenuContents(var LE as element ref) as string ; returns the contents of the memory menu for the specified LE as a string array.

@MemoryMenuLimit(var LE as element ref) as int
MemoryMenuLimit(var LE as element ref, limit as int) ; gets/sets the number of items the memory menu will keep

@MemoryMenuLock(var LE as element ref) as int
MemoryMenuLock(var LE as element ref, state as int) ; gets/sets whether user input will be saved to the memory menu.

@MemoryMenuPopup(var LE as element ref, x as int, y as int) as string; Forces the memory menu to appear, returning the selected string.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged