Category: BGI GUI
Syntax:
bgiImportFileWeb:Int(filter:String, window:Int)
Int
Lets the user pick a file on their computer and copies it into the web file store.
Takes filter (the file types to offer, e.g. ".rtf,.txt" ("" for any file)), window (the window that gets the answer).
View detailed documentation online
; In WebLoop: the Import button asks for a file...
If eventSource = btnImport Then bgiImportFileWeb(".rtf,.txt", window)
; ...and the answer loads it
If bgiGetEventMessage() = BGI_EVENT_COMMAND_CLICK And bgiGetEventID() = BGI_EVENT_ID_IMPORTFILE Then
If bgiGetEventData() = 1 Then bgiLoadRichTextFile(richTextBox, bgiGetEventExtra())
EndIf
BambooBasic © 2026 Michael Denathorn