File function is different in 2.8 than in 2.7

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
antonello.negrone
Posts: 22
Joined: Tue May 03, 2016 8:57 am
Location: Italy

File function is different in 2.8 than in 2.7

Post by antonello.negrone »

Hello,

I'm on the way to convert a huge app from 2.7 and 2.8 and running it for the first time, I noticed that the line:

File(Workdir()+"*.*")

in 2.7 returns TRUE but in 2.8 returns FALSE.  Trying on X# returns TRUE.
Is that a known issue? Is there a way to have the same behaviour?

Thanks
Antonello

 
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

File function is different in 2.8 than in 2.7

Post by Chris »

HI Antonello,

Where does Workdir() point to in the VO28 case? I do not have access to it right now to test it, but IIRC in VO28 by default it points to a My Documents folder, that might be empty indeed so File() doesn't find an files and correctly returns FALSE. I think VO27 points to the VO Bin folder and X# to the fodler where the .exe is located.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
antonello.negrone
Posts: 22
Joined: Tue May 03, 2016 8:57 am
Location: Italy

File function is different in 2.8 than in 2.7

Post by antonello.negrone »

Hi Chris,

workDir() looks to point the current exe path correctly.
Thanks
[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAt8AAADvCAYAAAAq77hAAAAgAElEQVR4Xu3dCZwUxd3/8VrUqHgi+KhBI0pQQfSFIj4S4vNXMBqNV0zMatTH6EMwiUeij0q8Hp/EIyqIUR/cSLxvNIpRIpFLDPFYFSSIgiCKIIICcikIu7j/rl5r6O2p7qqemZ7p4zPPkxe709XVv3pX7/qd2p6eultvvbWlvr5edOrUSfBAAAEEEEAAAQQQQCBvAkuXLhUjR44Ua9audYfefsstRVz5uO7TTz9t2X777cWXX36ZN2fGiwACCCCAAAIIIICA2GKLLcSKFSvEkCFDXI1LLrlExJWP65qbm1vWrFkDOwIIIIAAAggggAACuRVo3769uPjii93xDx06VMSVj+uampoI37k9zRg4AggggAACCCCAgBSQ4VuueMuHXAEPC99r1iwUOy/sIVa0f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gUHhe9GbzyWBlhoQQAABBBAoS4DwXRZfOnZOYxCrpCzhu5Ka8fVlE74bGxvjK4CeEUAAAQQQqIIA4bsKyBwCAQTMArbhu6GhwdwZLRBAAAEEEEioAOE7oRNDWQjkTYDwnbcZZ7wIIIBAPgUI3/mcd0aNQOIECN+JmxIKQgABBBCIQYDwHQMqXSKAQHQBwnd0M/ZAAAEEEEifAOE7fXNGxQhkUoDwnclpZVAIIIAAAj4BwjenBAIIJEKA8J2IaaAIBBBAAIGYBQjfMQPTPQII2AkQvu2caIUAAgggkG4Bwne654/qEciMAOE7M1PJQBBAAAEEQgRiC9/+jwf3f7y8qkm1C9rOJ1xy/iKQDwHCdz7mmVEigAACeReIJXyr/4h6ccOe021T+xK+836KMv68CBC+8zLTjBMBBBDIt0DNwrc3cBO+830SMnoEpADhm/MAAQQQQCAPAoTvPMwyY0QgBQKE7xRMEiUigAACCJQtUJPw7b8eXI1Cd903l52UPcd0gEAqBAjfqZgmikQAAQQQKFOgJuHbXzOXnZQ5i+yOQAYEoobvSZMmtRn1YYcdlgGF1iGYxmbaHgbh31e11fmptlmyzcxJwkAQQCC1AoTv1E4dhSOQLYEo4dsfCqOERNk2yWHSNDab7abxmfpQZ1
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

File function is different in 2.8 than in 2.7

Post by Chris »

HI Antonello,

I just checked VO28SP4, indeed it seems that when you use the * or *.* wildcards it returns FALSE, even if files do exist in the folder. At least if you specify *.txt and there are .txt files, then it returns TRUE.

This indeed looks like a bug of VO28 to me, but unfortunately we can't do anything about it now...Only workaround I can think of is to redefine the function in your own code, so it behaves as in VO27 and as in X#.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
antonello.negrone
Posts: 22
Joined: Tue May 03, 2016 8:57 am
Location: Italy

File function is different in 2.8 than in 2.7

Post by antonello.negrone »

Hi Chris,

ideed, it seems the only solution.

thanks for your time
Post Reply