Xojo msgbox

broken image
broken image

Think about that, when storing booleans in a dictionary or as a RowTag.Įven better would be if functions like the one used to create a boolean variant would be annotated, so LLVM could optimize away the calls above with the unused variables and give a difference of zero. Beside the first two boolean variants created, there is no more memory used for variants. You may expect six, but the Xojo runtime actually optimizes this and returns the same two variants again and again. dim f as folderitem GetFolderItem ('C:myprogram.exe', Folderitem.PathTypeShell) f. ', 12) Then I know with a 36 it displays Yes and No. We check object count, create six local variables of type variant with assigning boolean values. When you have the folderitem, use Launch to execute the program and pass parameters. The LR shows the MsgBox for implies I get for 12 an Okay and Cancel buttons, but I only get an Okay button. Dim ObjectCountBefore As Integer = runtime.ObjectCountĭim v1 As Variant = True Dim v2 As Variant = False Dim v3 As Variant = True Dim v4 As Variant = False Dim v5 As Variant = True Dim v6 As Variant = False Dim ObjectCountAfter As Integer = runtime.ObjectCountĭim difference As Integer = ObjectCountBefore - ObjectCountAfter I am using MsgBox to display warnings msg, it is a simple way to display any simple msg instead of MessagDialog class.

broken image