New topic in Getting Started: Saving Two Editfields In A Tabpanel
ReallyNube - Wed Apr 30, 2008 1:50 pm <http://forums.realsoftware.com/viewtopic.php?t=22137> Hi, I am creating an app that has two editfields in a tabpanel each Tab has a multiline edtifield with styled text formatting options. Going through tutorials I have created save file method which works for one of the editfileds but not the other. My question is this, do I need to create a new method for saving editfield 2 or is there a way of referencing the tabpannel1 for saving the text entered? Any help is greatly appreaciated. The code for the SaveFile method is this. Dim f as FolderItem If Document = Nil or DisplaySaveDialog then #If TargetWin32 //if on Windows f=GetSaveFolderItem("rtf",FileName) //use rtf file type #else //on Linux or Macintosh f=GetSaveFolderItem("text",FileName) //use text file type #Endif If f <> Nil then //if the user clicked Save Title=f.Name //window Title gets document name Document=f //window property gets folderitem End if End if If Document <> Nil then Document.SaveStyledEditField EditField1 Document.SaveStyledEditField EditField2 TextHasChanged=False End if -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
