V4RB, how to write TAB, CR in REALbasic

Frank Schima frank-list2 at mindstarprods.com
Thu Feb 12 10:22:46 CST 2004


On Feb 12, 2004, at 10:05 AM, Ruslan Zasukhin wrote:

> on 2/12/04 4:45 PM, Frank Schima at frank-list2 at mindstarprods.com 
> wrote:
>
>> Hi Ruslan,
>>
>>
>> On Feb 12, 2004, at 8:53 AM, Ruslan Zasukhin wrote:
>>
>>>         "ImportText(
>>>             File as FolderItem,
>>>             FieldDelimeter as String = "\t",
>>>             LineDelimeter as String = "\r" )"
>>>
>>>
>>> Is this syntax correct in RB ?
>>>
>>> I need specify TAB symbol and CR.
>>
>> No. You need to use chr() commands.
>>
>> Tab = chr(9)
>> CR = chr(13)
>
> But can I use this in function declaration ?
> As I have show?
>
>
>              "ImportText(
>                  File as FolderItem,
>                  FieldDelimeter as String = chr(9)
>                  LineDelimeter as String = chr(13) )

Yes, I tested it.

myVCursor.ImportText(myFolderItem, chr(9), chr(13))


Best regards,
Frank



More information about the Valentina mailing list