Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
From
28/12/1999 16:59:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00309534
Views:
44
>Ken,
>
>Your command gives me an error message "String is too long".
>Meanwhile I created my own program (and inserted Description at the top)
>
>
>********************************************************************
>*  Description.......: Function InsertDescription
>*  Calling Samples...:
>*  Parameter List....:
>*  Created by........: George Tasker 12/28/99
>*  Modified by.......: Nadya Nosonovsky 12/28/99
>********************************************************************
>#DEFINE CF_CR CHR(13)
>local lcString, lnLines, i, lnMemoWidth
>lcString=FileToStr('Description.txt')
>lnLines=memlines(lcString)
>lnMemoWidth=set('memowidth') && Save original settings
>set memowidth to 255
>_CLIPTEXT=CF_CR
>_mline=0
>for i=1 to lnLines
>  _CLIPTEXT=_CLIPTEXT+ALLTRIM(mline(lcString,1,_mline))+CF_CR
>next
>KEYBOARD "{CTRL+V}" PLAIN
>set memowidth to lnMemoWidth && Restore original settings
>
>

You can simplify this considerably = try

_CLIPTEXT = CHRTRAN(FILETOSTR('Description.txt'),CHR(10),'')
KEYBOARD "{Ctrl+V}" PLAIN
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform