Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AT() not working
Message
De
10/12/2009 11:35:40
 
 
À
10/12/2009 03:27:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01438311
Message ID:
01438418
Vues:
71
I run at startup in config.fpw commend=vfpstart.prg. In that prg I have:
DO ("c:\program files\microsoft visual foxpro 9\sdt\sdt.app")		&& puts stonefield data kit on menu
DO ("C:\Program Files\West Wind Html Help Builder\wwhelp_keys.PRG")	&& west wind help builder menu
DO ("c:\program files\microsoft visual foxpro 9\gdiplus\system.app")	&& vfpx gdi+, adds .system to _screen for gdi drawing
List status shows:
Processor is Pentium
Procedure file: C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\GDIPLUS\SYSTEM.APP            , SYSTEM.DRAWING.FXP     , SYSTEM.DRAWING.DRAWING2D.FXP        , SYSTEM.DRAWING.IMAGING.FXP      , SYSTEM.DRAWING.TEXT.FXP      , SYSTEM.IO.FXP  
File search path: C:\VMAN5\CLASSES;C:\PROGRAM FILES\WEST WIND HTML HELP BUILDER\                 
Default directory: C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9        
Print file/device:  
Work area                                       =    1
Margin                                          =    0
Decimals                                        =    2
Memowidth                                       =   50
Typeahead                                       =   20
Blocksize                                       =   64
Reprocess                                       =       2.00 SECONDS  
Refresh                                         = 5, 5.000 SECONDS  
DDE Timeout                                     =    2000
DDE Safety                                      = on

Code page:   1252
Collating sequence:  Machine
Compiler code page:   1252
Date format: American 
Macro Hot Key =  
UDF parameters are passed by:  VALUE  
ON KEY LABEL hot keys:  
  ALT+F1                            DO wwHelp_ShowContextId IN "C:\PROGRAM FILES\WEST WIND HTML HELP BUILDER\WWHELP_KEYS"
  CTRL+F1                         DO wwHelp_SetContextID IN "C:\PROGRAM FILES\WEST WIND HTML HELP BUILDER\WWHELP_KEYS"
 SHIFT+F1                           DO wwHelp_NewTopic IN "C:\PROGRAM FILES\WEST WIND HTML HELP BUILDER\WWHELP_KEYS"
F2                                DO wwHelp_EditorUpdateTopic IN "C:\PROGRAM FILES\WEST WIND HTML HELP BUILDER\WWHELP_KEYS"
Textmerge Options 
          Delimiters:  Left = <<  Right = >>
          Show  

Alternate                                   - off                                     Confirm                                     - off                                     Fullpath                                    - on                                      Print                                       - off                        
ANSI                                        - on                                      Console                                     - on                                      Heading                                     - on                                      Readborder                                  - off                        
Asserts                                     - off                                     Cursor                                      - on                                      Help                                        - on                                      Safety                                      - off                        
Bell                                        - off                                     Deleted                                     - on                                      Intensity                                   - on                                      Space                                       - on                         
Blink                                       - on                                      Device                                      - scrn                                    Lock                                        - off                                     Status Bar                                  - on                         
Brstatus                                    - off                                     Echo                                        - off                                     Logerrors                                   - on                                      Sysmenus                                    - on                         
Carry                                       - off                                     Escape                                      - off                                     Mouse                                       - on                                      Talk                                        - off                        
Century                                     - on                                      Exact                                       - on                                      Multilocks                                  - on                                      Textmerge                                   - off                        
Clear                                       - on                                      Exclusive                                   - off                                     Near                                        - on                                      Title                                       - off                        
Color                                       - on                                      Fields                                      - off                                     Null                                        - off                                     Unique                                      - off                        
Compatible                                  - off                                     Fixed                                       - off                                     Optimize                                    - on                         
>Do you have any unusual codepage set, or SET COLLATE?
>
>ISTR there's a keystroke command that dumps all the SETs to the Command Window (IIRC), but I can't remember what it is. Anyone?
>
>Could you post the results of that, or of LIST STATUS?
>
>>I did all that you suggested with no success, and I am using VFP 9 SP2.
>>
>>I have always had this problem, and I have seen it work on other people's computers, but never on mine.
>>
>>
>>>>
>>>>lx = "Zip Code"
>>>>ly = "Zip"
>>>>at(ly,lx) 
>>>>
>>>>returns 0 instead of 1
>>>> ...
>>>
>>>I tried this both with Visual FoxPro 6 and Visual FoxPro 9, and it works as expected, returning 1. I assume you add a question mark to the left of at(ly,lx) - I added it.
>>>
>>>Additional considerations:
>>>
  • at() is case-sensitive. You can use atc() instead, if you want to find text in any case.
    >>>
  • You may want to issue the command SET STEP ON right before you use the at() command, to check whether the variables really have the expected values.
    >>>
  • Also watch out for invisible characters, like spaces. Chec, in the debugger, whether len(ly) (in the example) corresponds to what you would expect from the visible part.
    >>>
  • I believe you didn't mention the version of Visual FoxPro, nor the service-pack you are using (if any). It is possible that some versions of Visual FoxPro have a flaw; but I consider this possibility remote in this case; at least, I didn't hear of version-specific problems for this particular command.
    >>>
    >>>HTH,
    >>>
    >>>Hilmar.
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform