I can only write an informal (and brief) description of what these do, in that I am not on the Lantica documentation team, and this is something of a preview - but since folks are asking:
Subroutines and Functions new to 1.0.5 ======================================
@Application() as string Returns the current appliction title as it appears on the Menu Tree.
@AsynchShell( command as string ) as int Just like @Shell, except it doesn't wait. That way you can launch another program and Sesame will keep doing while that program runs.
ClearDefaultTab() See: SetDefaultTab. This command clears the "default tab".
CloseSlate() The window that "WriteLn" writes to - is called the "Slate". This command closes it.
@ContractTreeItem( mname as string ) as int Closes a particular tree item on the command menus.
@Database() as string Returns the database name to which the current form is bound.
@ExpandTreeItem( mname as string ) as int Opens or expands a particular tree item on a command menu.
ForceGroupBreak(level as int) The reports in Sesame 1.0.5 can have additional "nesting" group headers and footers. This allows you to "break" at different "levels" within the group. ForceGroupBreak allows you to use complex conditions to force a break in any of these nesting groups headers/footers. In other words, you can use SBasic conditionals (the "if" statement) to force a group break in a report on any condition you can think of.
@HideTreeItem( mname as string ) as int Forces a tree item on a command tree to disappear.
OpenSlate() The window that WriteLn writes to is called the "Slate". This command will open it if it is not already open.
PopupSelectPosition(p as int, xx as int, yy as int) This command allows you set where on the screen, window, or form the popup menus (UserSelect, PopupMenu, etc..) appear.
PrintBox(boxtype as int, xpos as int, ypos as int, width as int, height as int) This command is like PrintString, but prints a box or frame instead of text.
PrintImage(val as string, xpos as int, ypos as int, width as int, height as int) This command is like PrintString but prints an image instead of text.
@QuestionUser( q as string, def as string ) as string This is like @AskUser, but instead of using buttons for the choices it uses a text input box - allowing any answer.
@ReLabelTreeItem( mname as string, new_name as string ) as int This command lets the programmer rename/relabel the command menu tree items.
@RevealTreeItem( mname as string ) as int This command reveals a tree item previously hidden with HideTreeItem.
@ServerDate() as string This command returns the date on the server, which might be different than the date on the client.
@ServerTime() as string This function returns the time of day on the server - which might be different from the time of day on the client.
SetDefaultTab(level as string) This command lets the programmer set a "tab" that the program will bring to the top when the current tab (form) is closed. That way, when the user hits Escape, the program can always go back to the same form.
@StandAlone() as int This functions returns true if the current form is running without a parent. It could be used to prevent users from using a subform unless it is embedded in its parent form (or vice-versa).
@Timestamp() as int This function returns an integer representing the timestamp of the current record - in seconds. This command is useful for generating unique IDs, comparing records, sorting, etc...
@TreeItemExpansion( mname as string ) as int Returns whether a tree item is expanded or not.
@TreeItemVisibility( mname as string ) as int Returns whether a tree item is hidden or not.
|