Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,823 of 9,834    |
|    Anders Jonsson to All    |
|    Re: Paradox 11 Title Bar 8.3 Naming Conv    |
|    26 Sep 07 20:33:02    |
   
   From: gt3TakeThisAway@bredband.net   
      
   > I have an   
   > application that depends upon being able to read the entire form's   
   > name.   
      
   What I usually do is to give the form a name, like:   
      
   "PhoneNo"   
      
   I then give the form a title at design time, like:   
      
   "Phone numbers"   
      
   I then use code like this   
      
   if fHandle.attach("Phone numbers")   
    then   
    ;ok allready open   
    else   
    if not fHandle.open(":FORMS:PhoneNo") then errorshow() return endif   
      
   endif   
      
      
   If you really need to put the complete file name in the title you could try   
   this code in the open of the form   
      
   method open(var eventInfo Event)   
      
    if eventInfo.isPreFilter() then   
    ;// This code executes for each object on the form   
      
    else   
    ;// This code executes only for the form   
    self.Title=getFileName()   
    endIf   
      
   endMethod   
      
      
   Anders   
      
      
      
      
   Anders   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca