Hello DRJ478,
Could you please explain your statement below for me? I tried to understand it but I am a little dense. ;-)
$offset = $offset == 0 ? $value+1 : $offset+$value;
Thanks!
I have the following code snippet that list all file in a directory with ABC* pattern. But, it only list file in the directory that the VB script is in. How do I specify which directory to list. So, that it doesn't matter where the VB script resides.
Private Sub Command3_Click()
'Load an...
I use RSH on my PC and it didn't ask for a password.
But, if I use REXEC then it ask me for a password everytime. Anyway to get around this password? Have it specify explicily?
--DRM
Hello Everyone,
I created a VB GUI that people can use to RSH login to a UNIX server and run a script. When I was developing it on my PC it worked fine. It still does.
The problem is if other people try to use that GUI on their PC, they cannot connect to the UNIX server via RSH.
Background...
Hello Everyone,
I created a VB GUI that people can use to RSH login to a UNIX server and run a script. When I was developing it on my PC it worked fine. It still does.
The problem is if other people try to use that GUI on their PC, they cannot connect to the UNIX server via RSH.
Background...
Thank you for your suggestion.
I tried
strcpy(proddir,"Food");
instead of
proddir = "Food";
and everything worked as expected.
--DRM
I got the following code and it gave me the following error: line 121: error 1549: Modifiable lvalue required for assignment operator
Here's the code snippet:
char lot_prefix[2], proddir[20]
strncpy(lot_prefix, lot_no, 2);
if ( (strncmp(lot_prefix[1],"F",1) == 0)...
How come this doesn't work? I keep beating my head, but I just couldn't figure it out?
$filepattern =~ /^[a-z,A-Z]{3}\d{6}\.\d\d$/;
$fullpath = $datadir."/".$filepattern;
if (-e $fullpath) {
blah blah
}
In the directory I have files:
ABC123456.01
ABC123456.02...
Thank you Leibnitz!
That's exactly what I am looking for. But, I thought it would be a lot simpler than that. Oh well, if it works, I am not going to complain. Thanks a bunch.
DRM
Is there a way to check to see if certain value is in the array.
For example, instead of doing something like the following statement:
if ( (x=='A') || (x=='W') || (x=='p') { ... }
I would like to do something to this effect:
options = ('A','W','P');
if ( x in options ) { ... }
Is that...
The following program give me these error:
ompiling...
AnyCurrency2US.cpp
E:\DVN\UOP\POS370\Week3\Currency_Conversion\AnyCurrency2US.cpp(61) : error C2440: '=' : cannot convert from 'char [4]' to 'char [20]'
There is no context in which this conversion is possible...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.