![]() |
#1
|
|||
|
|||
![]()
I can't make this script work in CorelDRAW 12
Code:
a=53456 b$="asd" c#=123 i%=freefile() OPEN "c:\_wr.tmp" FOR OUTPUT AS i write #i, a, b, c close i OPEN "c:\_wr.tmp" FOR INPUT AS i input #i, a, b, c close i message str(a)+chr(13)+b+chr(13)+str(c) Is it possible to make it use ASCII?[/code] |
#2
|
||||
|
||||
![]()
I guess it's about time to switch to VBA probably?
![]() But to answer your question, I don't think there is anything you can do, other than opening the file afterwards and then re-encoding it... CorelScript is no longer supported and I guess the compiler was unadvertedly converted into Unicode along with the rest of the suite. However I really doubt that there will be any fixes coming for this particular problem. But don't take my words for it. It's just my guess, and personal opinion. I will still report this problem and let's hope it'll get fixed for you... On the other hand, I would consider switching to VBA instead... Just curious, why do you have to use CorelScript? |
#3
|
|||
|
|||
![]() Quote:
![]() As for me I prefer not to rewrite scripts to VBA if they are working normally, and it's much more convinient for me to work with Script Manager docker, than to create my own buttons for VBA macros... |
#4
|
|||
|
|||
![]()
Hi Guys,
I just solved this one, and it is not pretty! Add this subroutine to your script: SUB myStringWrite(n as integer, s as string)Now, when you have a string to write, say myString, to an open file, say file # 1, simply call myStringWrite 1, myStringA long time ago, I had to fight the opposite problem in CorelScript 7, where it would not reliably read string with the LineInput command. For that problem, I created this: FUNCTION ReadLine (n as integer) as stringIt is called by simply myString = ReadLine(f) ' where f is the filenumber used to OPEN the fileI hope this helps. I realize none of it is pretty, but that's what I've come to expect from the authors of CorelScript. Take Care, Gary |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple Bar code generator | Webster | Code Critique | 2 | 06-09-2010 02:41 |
CorelDRAW 12 SP1 is available | Alex | CorelDRAW/Corel DESIGNER VBA | 1 | 04-08-2004 02:43 |
Accesing CorelDraw 10 VBA Object Model without running it | dolmos | CorelDRAW/Corel DESIGNER VBA | 5 | 19-12-2003 08:52 |
Creating macros for CorelDraw 10 in CorelDraw 11 | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 1 | 14-03-2003 09:00 |
CorelDRAW 11 and AddIn’s | reanan | CorelDRAW/Corel DESIGNER VBA | 2 | 03-12-2002 15:21 |