Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating to 5.1j
Message
 
 
To
18/10/2002 15:46:43
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00713045
Message ID:
00713502
Views:
22
This message has been marked as the solution to the initial question of the thread.
Since I am already at SDT6 and no longer have SDT5 [or VFP5 for that matter], does your code look like:
   PROCEDURE selectfont
      local lcStyle, ;
         lcFont, ;
         lnPos1, ;
         lnPos2
      with This
         lcStyle = iif(.FontBold, 'B', '') + iif(.FontItalic, 'I', '')
      #if type('version(4)') = 'U'
         lcFont  = getfont()
      #else
         lcFont  = getfont(.FontName, .FontSize, lcStyle)
      #endif
If you do not have the #if...#endif construct, this may be what you need to fix the problem. This is the SelectFont method of the SFEditBox in the SFCtrls.vcx class library.

>I am updating my Stonefield database toolkit application from
>5.1g to 5.1j.
>
>Once completed I must recompile the project d:\stonefield\sdt\sdt.pjx.
>
>I receive a syntax error when compiling the project in VFP 5.0a...
>
>
>Compiling d:\stonefield\sfcommon\sfctrls.vcx
>lcFont = getfont(.FontName, .FontSize, lcStyle)
>Error in line 166 of sfeditbox.selectfont (record 58): Syntax error.
>
>This error does not occur when I rebuild the Stonefield project with VFP 6.0
>
>I'd prefer to fix this error so that I can safely build the .app file in VFP 5.0 for use on my client's VFP 5.0A databases.
>
>
>In the event I cannot do this ...
>Is it safe to build the Stonefield .app file with VFP 6 and run it in VFP 5?
>
>
>Dave.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform