Newsgroup: it.comp.appl.access
Titolo: [contributo] Cambiare sfondo a runtime e random

A volte si fanno cosette inutili ma che possono servire.
Questo č proprio un esempio di cosa inutile ma che puņ servire.
Si tratta della possibilitą di cambiare in modo random l'immagine di sfondo 
di una maschera.
Ad ogni apertura della maschera "Apertura" lo sfondo cambia in modo random e 
sulla base di una tabella che contiene i path delle immagini.
Nell'esempio proposto č necessario scompattare tutti file contenuti nel file 
zip in c:\ e poi lanciare "CambiaSfondo.mdb" (Access XP).
http://www.frantoiogestione.com/CambiaSfondo.zip
Funziona anche nella versione mde e a runtime.
Ciao, Carlo 

...dai commenti deduco che è stato molto apprezzato!
Ciao, Carlo 


Non ti scandalizzare nel NG non ci sono mai state reazioni forti...! ;-)
In questa riga su Open il commento ha credo un refuso...
    MyValue = Int((19 * Rnd) + 1)    ' Genera un valore casuale compreso tra
1 e 6.
Una modifichetta per usare anche il campo Selezionato....
Per usarlo ho riempito un'array con i Records(Selezionato=True) quindi il
generatore RND lo ho applicato
a quell'intervallo dal quale recupero l'ID ed il relativo PATH...
Ciao Carlo
-- 
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.alessandrobaraldi.it
---------------------------------------------------------------------------

 @Alex (Alessandro Baraldi)
Ciao e grazie per il tuo commento. Carlo

 Ciao, Carlo
Ciao Carlo
tieni presente che hai postato ieri sera, venedì, e forse sono stato uno 
dei primi
a scaricare il demo. ma sai benissimo che nel WE i frequentatori sono 
pochini.
in ogni caso non devi demoralizzarti, sai quanto sei stimato da tutti.
adesso ho provato il demo però lo sfondo della maschera è sempre lo 
stesso,
le due farfalle. ho provato a chiudere e riaprire la maschera diverse 
volte.
uso AXP.
come mai? ho scompattato tutto in C e lanciato cambiasfondo.mdb
ho dimenticato qualcosa?
Daniele 

 Daniele
Nella dlookup devi cambiare il nome della tabella da SQImmagini a Immagini.
Per il resto č OTTIMO
.
-- 
Ciao
Geppo 

 Geppo
Ciao
Daniele 

> Daniele
Ciao Carlo
Perfetto. ottima soluzione per cambiare lo sfondo delle maschere.
Buona domenica
Daniele 

 Daniele
Anche a te e grazie.
Ciao, Carlo 

 ha scritto nel messaggio 
news:fmvk60$9d0$1...@tdi.cu.mi.it...

Ho scaricato...devo ancora guardarlo...ma leggendo i post mi č venuta in 
mente un possibile perfezionamento....e svincolare il random dal numero di 
immagini?
Che ne so indipendentemente dal numero di immagini caricate faccio il random 
andando a leggere il contenuto della cartella...che dici?
Appena ho un attimo di tempo scrivo un pň di codice...
Bell'idea comunque...
Intanto che ci sono ti chiedo un parere Carlo...ho visto che tu usi come 
collegamento remoto VNC...com'č?Ti trovi bene?
Dove posso trovare qualche notizia, guida in merito?
Grazie
-- 
Roberto da Parma

 Grazie
Molto comodo
in abbinata a Hamachi
-- 
-- 
MAssimiliano Amendola
www.accessgroup.it
Cisa - Conferenza Italiana Sviluppatori Access


Ciao, Carlo 

 ha scritto nel messaggio 
news:fn7rsc$4sg$1...@tdi.cu.mi.it...

Grazie MA e Carlo.
...ho letto...mi metti ancora più in difficoltà...
Io ad oggi avevo sempre usato Desktop remoto (nativo di XP), giusto perchè 
era li e free... (Microsoft...free??mmm... :-o )
Comunque a questo punto sorge altra domanda...
Viste tutte le premesse cosa consigliereste per gestire una assistenza 
remota?
Ciao
-- 
Roberto da Parma


A Robč...mi sembra chiaro:
XPUnlimited (per database in remoto e non solo)
LogMeIn
Hamachi + VNC
Desktop Remoto di Microsoft (con molti ma...)
Ciao, Carlo

Colony, and there
    were no witnesses against him. The purchase by Chinese of young
    orphans, and indeed of others whose parents are too poor to keep
    them, is a social custom amongst the natives, and is of constant
    occurrence in Hong Kong. These 'pocket-children,' as they are
    usually termed, are often treated with great affection, and are
    far better off than they were previous to their being so bought."
It was the 30th of May when the Chief Justice called the Governor's
attention to these cases. It was July before the Attorney General and
the Crown Solicitor seem to have paid any attention to the cases. It
was no wonder, then, that some of the witnesses could not be found.
Meanwhile the Governor had left the Colony for a trip to Japan, and
W.H. Marsh was acting in his place. On July 16th, he returned answer
to the Chief Justice that he had now received a report on the cases
from the Attorney General, the committing magistrate and the Crown
Solicitor, and
    "I regret to inform you that ... I do not see my way to directing
    the prosecutions of the two persons indicated by you; first ...
    because I do not agree with you in looking upon them as the
    principal criminals; and, secondly, because I think that after
    the evidence of these persons has been taken both befo

by entering the house, No. 42,
    Peel Street, without a warrant, or any direct authority from the
    Registrar General or the Superintendent of Police, and would
    strongly recommend that the whole system of obtaining convictions
    against keepers of unlicensed brothels be thoroughly revised,
    as the present practice is, in our opinion, both illegal and
    immoral."[A]
[Footnote A: Inspector Lee testified on this occasion that he
sometimes had chased women over the roofs of as many as twenty
contiguous houses.]
On Nov. 1st, 1877, Governor Hennessy wrote to the Colonial Office,
London:
    "I have taken the responsibility of putting a stop to a practice
    which has existed in this Colony since September, 1868, when Sir
    Richard MacDonnell sanctioned the appropriation of Government
    money for the pay of informers who might induce Chinese women to
    prostitute themselves, and thus bring them under the penal clauses
    of the Contagious Diseases Ordinance. For many years past this
    branch of the Registrar General's office has led to grave abuses.
    It has been a fruitful source of extortion, but what is far worse,
    a department of the State, as one of the local papers now points
    out, which is supposed to be constituted for the protection of the
    Chinese, has been employing a dangerously loose system, whereby
    the sanctity of native households may be 

" His Lordship:--"The
    Attorney General at home is constantly ordered by the Court to
    prosecute. On my responsibility alone I do this." The Attorney
    General:--"May I ask your Lordship to say on what charge?" His
    Lordship:--"Under Sections 50 and 51 of No. 4 of 1865, and also
    for assault." The Attorney General continued to raise objections,
    when the Chief Justice said: "I have said as much as I choose to
    say, and I will not be put to question by the Attorney General. If
    you have any difficulty, come to the Court in Chambers."
Governor Hennessy, in reporting the incident to the Secretary of State
at London, adds: "I sent a note to the Attorney General, saying I
thought that the prosecution suggested by the Chief Justice should
take place; but it was found that the accused parties were not in the
Colony." After this manner many cases brought to the attention of the
officers of the law by parents or guardians of children of kidnaping
and trading in girls and children failed to secure the attention they
deserved. It seems to us not at all amazing, when one reads this past
history, that by 

workers should have the Government
authority signified by a policeman's star.
The evil to be combated should be met with the right remedy. "Fitches
are not threshed with a thresher, neither is a cart wheel turned about
upon the cummin; but the fitches are beaten out with a staff, and the
cummin with a rod." Much of the failure to control brothel slavery
has grown out of the application of the wrong remedy, not out of a
difficulty in controlling the Chinese. These cases of trading in human
flesh have generally been treated in the courts as though coming under
the laws against ordinary prostitution. To illustrate:
Within the past month, three Chinese girls were captured by a rescue
worker. They were cooped up, with a man who had charge of them, in
a tiny closet scarcely sufficient to hold the four, which had been
entered by a panel door which was securely nailed up and bags of rice
piled against it. The rescuer pulled away the bags, pried open the
door of the secret receptacle with her hatchet, and drew out the
girls, dripping with perspiration and panting for brea

notified that the father was entitled to the child by
British law, and referring the father to the police magistrate.
The police magistrate requested of the Colonial Secretary that
the Attorney General's opinion be obtained, as to what course the
magistrate should pursue. The final outcome of the case is told by
Governor Hennessy in a despatch to the Secretary of State for the
Colonies.
    "I made a minute on the petitions, directing them to be sent to
    the Attorney General, as 'the parties appear to acknowledge being
    concerned in an illegal transaction.' In a few days the papers
    were returned to me with the following opinion of the Attorney
    General: 'The transaction referred to would not be recognized in
    our laws as giving any rights, except perhaps as to guardianship,
    but I am unable to say there is anything illegal in the matter
    beyond that. I do not think it a criminal offence if it goes no
    further than the adoption of a child and the payment of money to
    its parents for the privilege.'"
Later, when His Excellency was calling the attention of Acting
Attorney General Russell to a somewhat similar case, he states, in
reference to this above-described case:
    "Mr. Phillipo, before whom the papers were laid, did not seem
    disposed to enforce the rights of the father, on the ground that
    he had sold the child. I did not agree with Mr. Philli

details? There are hundreds more
of such cases of cruel wrong on record, and God alone knows how many
thousands of cases there are that have never been put on record. We
only aim to give a case here and there in illustration of the many
forms of cruelty practiced upon innocent women in order to force them
into prostitution, and to demonstrate that brothel slavery at Hong
Kong cannot truthfully be represented as the outcome of Chinese
customs which foreign officials have found difficulty in altering.
But why should Americans be called upon to acquaint themselves with
such loathsome details? In order that Americans may have some just
conception of their duty toward the large number of these poor,
unhappy slaves who have been brought from Hong Kong to their own
country.
CHAPTER 5.
HOUNDED TO DEATH.
Sir John Pope Hennessy went to Hong Kong as Governor of the Colony in
the early Spring of 1877. In the following October a tragedy occurred,
which drew his attention to the administration of the Registrar
General, and he set himself to the task of trying to right some of the
wrongs of the Chinese women.
The case last mentioned in the previous chapter related to a woman
by the name of Tai-Yau, whom an informer humbled "against her will,"
which led to his being rewarded and her being fined $100, to pay which
she sold her little boy. This seems to have been the only way open for
her to escape a life of prostitution. To make this point clear, we
will here insert the explanation of conditions given by Dr. Eitel in
a communication for the information of Governor Hennessy at a little
later period than the incident we are about to relate. He speaks of
Chinese women who secretly practiced prostitution [but, as we have
shown, many respectable Chinese women suffered also], as
    "preyed upon by informers paid with Government money, who would
    first debauch such women and then turn against them, charging them
    before the magistrate unde

are maintained, then they must be maintained by
Oriental means,--which was slavery. Under such circumstances, to
license prostitution meant, from the very nature of the case, to
license slavery. To encourage prostitution, as it always is encouraged
by the Contagious Diseases Acts, meant to encourage slavery. Hence
they reasoned, and declared--to use the language of the Registrar
General, Cecil C. Smith--that it was "useless to try and deal with
the question of the freedom of Chinese prostitutes by law or by
any Government regulation. From all the surroundings the thing is
impracticable."
It must be admitted that the conditions at Hong Kong favored the
development of social impurity. From the moment of British occupation,
and before, in fact, there were at that place large numbers of
unmarried soldiers and sailors, many of very loose morals; also
many men in civil and military positions as officials, and numerous
merchants, etc., most of them separated far from their families and
the restraints that surrounded them at home. On the Chinese side,
there were men accustomed to deal with their women as chattels,
willing to sell them to the foreigners.
But we need to inquire a little further into the matter before
conceding that because a thing will almost inevitably take place,
therefore it is best to license it in order to keep it within bounds.
The superficial sophist says: "Prostitution always has existed and
always will exist. Painful as the fact is, such is the frailty of
human nature. You cannot make men moral by act of parliament, and it
is foolish to try. We will have to license the thing, and thus control
it as best we can. That is the only practical way to deal with this
evil." Such reasoning as this exhibits the most confused notions as to
the nature of law.
No law is ever enacted except with the expectation that an offense
against it will take place. Law anticipates transgression as 

 ha scritto nel messaggio 
news:ab2rpd-ibn$3...@tdi.cu.mi.it...

Ma cos'è sta merda???
Avete ciappato un virus???O google da i numeri??
Mah....
-- 
Roberto da Parma

 ha scritto nel messaggio 
news:fn7ulm$8he$1...@tdi.cu.mi.it...

Chiarissimo...cercavo delle preferenze...credo che la tua lista risponda a 
tutto....
-- 
Roberto da Parma