Archive: ini file


ini file
Hi,

I have created this ini file to get an input field where the user needs to enter his initilas. Wath I want now is the the user can max. enter 3 characters. Can someone tell me how I can do this. Here is my ini file.

_____________________________

[Settings]
NumFields=3
Title=Enter Initials
BackEnabled=1
CancelEnabled=0
CancelButtonText=Cancel
NextButtonText=Next
BackButtonText=Back
Length=2

[Field 1]
Type=Text
Left=41
Right=55
Top=17
Bottom=29

[Field 3]
Type=Label
Text=Ownercode:
Left=0
Right=450
Top=17
Bottom=29
_____________________________

Thx,

Tupsan


For field 1:

MaxLen=3


Also, the "Length" value name for Settings section is not necessary.

Hi,

thx it works. I have one little question I have added some thext in my ini file. But when i run the page the text is not complete. I have attached a print screen. Do you have any idea.
Here is my ini file

[Settings]
NumFields=4
Title=Enter Initials
BackEnabled=1
CancelEnabled=0
CancelButtonText=Cancel
NextButtonText=Next
BackButtonText=Back

[Field 1]
Type=Text
Maxlen=2
Left=41
Right=55
Top=17
Bottom=29

[Field 3]
Type=Label
Text=Ownercode:
Left=0
Right=450
Top=17
Bottom=29

____________________________________________________________

[Field 4]
Type=Label
Text=Please enter your initials for HitchHiker Visuals Fares Entry ! It is very important that you enter the exact initials in the field Ownercode. Your initials are mostley the first letter of your firstname and teh first letter of you lastname. For example:********** ******* would be **. If you are not sure of your initials please contact ICT. You can also check your initials in the document Ownercodes.xls. You can find this document in ****************.
Right=600
Left=60
Top=17
Bottom=50
____________________________________________________________


You should make the height and/or width of the control bigger. Just adjust the "Right" and/or "Bottom" values of field 4. Also, the default UI maximum dialog coordinates are 130x266 (width x height) dialog units.

Remember, you can also use "\r\n" to create new lines in the label control, making the text less crowded.


Thx again it works. Is there any way that I can specify that wath the user eters automaticly will be in capitals. Also I would like to disable the next button untill the user has entered 2 characters

Tupsan