Break
From Real Software Documentation
Language Keyword
When running in the IDE, Break causes the compiler to break into the debugger. In a compiled application, it has no effect.
Syntax
Break
Notes
The Break keyword has the same effect as setting a breakpoint in the Code Editor. Break statements are ignored in standalone applications.
Break is a reserved word in Real Studio.
Example
The following pauses execution just before presenting the Save-File dialog.
Dim f as FolderItem
If Document = Nil or DisplaySaveDialog then
Break
#If TargetWin32 //if on windows
f=GetSaveFolderItem("rtf",FileName) //use rtf fle type
#else //on Linux or Macintosh
f=GetSaveFolderItem("text",FileName)
#endif
If f<>Nil then //if the user clicked Save
Title=f.Name //window Title gets the name of the document
Document=f //window property gets the folderitem
End if
End if
If Document<>Nil then
call TextEntry.save(f, True)
TextHasChanged=False
End if
If Document = Nil or DisplaySaveDialog then
Break
#If TargetWin32 //if on windows
f=GetSaveFolderItem("rtf",FileName) //use rtf fle type
#else //on Linux or Macintosh
f=GetSaveFolderItem("text",FileName)
#endif
If f<>Nil then //if the user clicked Save
Title=f.Name //window Title gets the name of the document
Document=f //window property gets the folderitem
End if
End if
If Document<>Nil then
call TextEntry.save(f, True)
TextHasChanged=False
End if
