| || |
About to make a directory structure of sbh and sbl files
User Fermin Jimenez Najar (firstname.lastname@example.org) posted:
I want to make a directory structure of sbh and sbl files, but i don't know
If i want declare something like this in the sbh file:
Declare Sub Myprocedure BasicLib "C:\MyDirectory\Test\sblfile" (arg1, arg2)
'***** ( the sblfile without the extension, is the rule )
i get an error where i run the test script.
How i reference a path in the declarations of the sbh file ??
Re: About to make a directory structure of sbh and sbl files
User PHIL BEVAN (PHIL.BEVAN@thales-cs.com.nospam) posted:
I don't think that the SQABasic Declare Sub/Function can accept a path to an
SBL file. I think it has to be in a 'known' folder, my quick testing here
showed that I couldn't reference a file on my system.
However what you could do is this:
Share a folder on your C:\ e.g. myscripts
Put the SBL file in this folder
Redeclare the line with a UNC path:
Declare Sub Myprocedure BasicLib "\\YOURCOMPUTER\MYSCRIPTS" (arg1, arg2)
And try that.
Why use UNC path do you say, well I was thinking what does SQA basic see as
the C:\ drive? Does it see your drive, unlikely, or does it see the C:\ of
the server its on, ooh possibly.
I can't test this now, but you could.
Let me know how you go and I'll try to help if I can.