Hi,
I am new to c# and not sure how to do the following.
I have to namespaces. Namespace2 is compiled at runtime and always has a different name. The properties and methods are however known.
From namespace1 I want to be able to access instances of a class in namespace2.
To get a reference...
Hi,
I would like to use a ShellTreeView. The problems is that when you click 'My Computer' in the shell TreeView the a: drive is activated. This is rather annoying. Is there a trick to stop this or disable the a: drive in the treeview (since it is not used anyway)?
Thanks,
Raoul
By default the Glyph is positioned on top of the Caption in a toolbar. How can you position the glyph on the left? There seem to be no property that let's you do this.
Thanks,
Raoul
Hi,
I have tabsheets created in run-time and TMemo's as the child object.
On top of the PageControl I have a TEdit. The idea is that the TEdit shows the name of the TMemo that is on the active tabsheet. How can you access the name property of the specific TMemo on the active TabSheet...
Hi,
I have a PageControl with dynamically added tabsheets. The caption looks like: Page 1, Page 2, Page 3, etc.
It is also possible to destroy a tabsheet.This is simply done with:
PageControl1.ActivePage.Destroy;
The problem now is that the captions need to be renamed so you still see: Page...
Hi,
I am using the TDownloadUrl component to load files from the Internet. It turns out that the files are not only saved to the specified location but also to the Temporary Internet Files folder. Does anyone know if this can be avoided?
Thanks,
Raoul
Hi,
I am trying to load a file from the Internet into a TMediaplayer on the main form. The problem is that the program hangs till downloading is finished. How can you put this process (closing a TMediaPlayer, changing the filename, opening the TMediaplayer and loading the file) into a thread to...
Hi,
I am currently switching from the BDE to ADO. I have an query with a left join operation. It worked well with A TQuery and the BDE engine. Not with a TADOQuery!
I stripped down the query to the bar minimum:
DataModule1.QResDB.Close;
DataModule1.QResDB.SQL.Clear;
s1 := 'select...
Hi,
I couldn't find this in the Perl documentation but it must me possible.
How can I get the length of an array?
$length =@array.length; # returns 00?
What is the right syntax?
regards,
Raoul
I’m trying to change a script but there are some pieces of code I don’t understand. Can anybody tell me what these lines exactly do?
- use Config;
- binmode(FILE);
- flock(FILE,2);
- flock(FILE,8);
Thanks,
Raoul
Hi,
I’m working on a score system for a game. The piece of code underneath checks if a player stopped playing while the game was not yet finished (after 1 hour of no progress) and the exit button in the game wasn’t used to quit. This is to splice the player from the datafile. The code...
I have this perl score_board script that I use for a game. It shows the final result of a player. I’m trying to change the script in a way that the score board is immediately updated with the scores of the separate parts within the game.
To accomplish this I added $ref to each record which is a...
Hi guys,
I’m looking for a regex solution for this:
I would like to check if the contents of a $ matches part of the contents of another $. If so proceed with the next action.
Example:
$one = “regular expressions”;
$two = “I would like to know more about regular expressions”;
match is...
I have some questions about manipulating the contents of a $:
- I’m trying to standardize the look of a nummeric variable field.
The input can be for example:
1000000
1.000.000
1,000,000
they all should finally look like:
1.000.000
I can only think of getting the length of the string and...
Hi,
I hope this is possible. Once a protected area (.htpasswd)has been entered the user won't retype his username untill the browser has been closed.
I would like to change this and my quess is that the access is determined by a valid $ENV{'REMOTE_USER'}.
If so is it possible to set the...
I'm not sure this is the right place to ask?
I'm setting up a password protection area on my site using .htpasswd (first time I'm trying this).
It seems to work but after getting access the first time it doesn't ask me anymore for a username and password even when I reconnect to the Internet...
I have a data file than contains 4 variables seperated by “:” for each record, like
Mark:25:male:sports
To open the file I use:
open (data, "<$file") or &error("Unable to open the data file");
@data=<data>;
close(data);
What I would like to do is check the first variable...
Hi,
I'm trying to maintain a log file. Actually I thought it was working fine but there is a little problem:
Each time the script writes to the file it continues on the same line while it should start at a new line.
This is the piece of script that I use:
$download_log =...
Hi,
I have a page where people have to fill in personal details before they can download some files. The idea is to keep a log file from those who downloaded the files.
As I’m not at all good with Perl I succeeded at my surprise to get most of this to work! But there is one thing I can’t...
Hi,<br><br>All of this is rather new to me although I think I have overwon the first step and I’m starting to like this. What I’m trying to do is executing a cgi script which should read a datafile and only add 1 to the value of the corresponding variable in the datafile that was send with the...
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.