Problem with strings when using XP Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Problem with strings when using XP « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jerry Brown (jerrybrown11743)
Member
Username: jerrybrown11743

Post Number: 35
Registered: 03-2004
Posted on Sunday, June 03, 2007 - 07:53 pm:   

I have an application that requires transferring data from one script to another. The following scheme worked fine in Win 2000 but not in XP.
*****************
DEFINITIONS
Yerr(i) = -W/2+W*(i)/20
PLOTS
summary("") export file= 'Next_step.txt'
repeat i=0 to 20
report(val(x2,L,Yerr(i))) as 'Xd'+$i
report(val(y2, L, Yerr(i))) as 'Yd'+$i
endrepeat
*****************
The problem is with concatenation. On my desktop, which runs Win 200, statements like 'Xd'+$i work fine. But on my laptop, which runs XP, the concatentation doesn't work. I've had to replace the repeat loop with straight code to avoid the 'Xd'+$i construction.
Is there a way to get around this?
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 869
Registered: 06-2003
Posted on Monday, June 04, 2007 - 05:27 pm:   

Software rot has afflicted the processing of string concatenations.

I have corrected this error and posted a developmental copy for Win32 at www.pdesolutions.com/download/xfpde5017x3win.exe
This is a self-extracting archive containing only flexpde5.exe. Extract over your old file, or change the name of the old file first.

We don't have any Win 2000 machines left, so I can't really test it, but it's hard to imagine a scenerio that would make this problem OS dependent.
Top of pagePrevious messageNext messageBottom of page Link to this message

Jerry Brown (jerrybrown11743)
Member
Username: jerrybrown11743

Post Number: 36
Registered: 03-2004
Posted on Monday, June 04, 2007 - 06:34 pm:   

Thank you. The problem is fixed. The script now works on both machines.

I can't imagine why the problem only showed up on the XP machine. But, I swear, it did.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration