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 9,618 of 9,834    |
|    Jim Moseley to All    |
|    Re: SwitchIndex syntax...?    |
|    10 Feb 09 14:55:46    |
   
   From: jmose@mapson.attglobal.net   
      
   Kenneth,   
      
   IIRC, switchIndex is used on uiObject & tcursors, not forms. So you need   
   to attach to a field on the form, then switch the field's index. Something   
   to the effect of:   
      
   var   
    newDate form   
    newUI uiObject   
   endVar   
   allIsWell = false   
   if newDate.open("newProgs") then   
    if newUI.attach(newDate.myFieldName) then   
    if newUI.switchIndex("startsOn") then   
    allIsWell = true   
    endif   
    endif   
   endif   
   if not allIsWell then   
    errorShow()   
    return   
   endif   
      
   HTH,   
   Jim Moseley   
      
   --- 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