Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in wizard txtbtn
Message
From
28/09/1997 11:24:52
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
 
 
To
28/09/1997 10:56:16
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00052053
Message ID:
00052061
Views:
36
>I am trying to use the wizard buttons for my application but find that there is a bug. Can anyone tell me how I can overcome this bug.
>
>When I am using one to many form, the grid won't work. It seems that if the master and detail tables are linked by a key of type other than character, it won't work. In my case, I am using a surrogated key of integer type. I am using the data environment.
>
>The codes that cause the problem are as follow:
>
>* Add child record
>IF INLIST(oAddRec.AddOption,OPT_ADD_CHILD,OPT_ADD_BOTH)
> * Need to check
> GO m.nSaveRec
> IF EMPTY(m.cChildKey) OR TYPE("m.cChildKey")#TYPE('oAddRec.KeyValue')
> APPEND BLANK IN (m.cChildAlias)
> ELSE
> INSERT INTO (m.cChildAlias) ((m.cChildKey)) VALUES(oAddRec.KeyValue)
> ENDIF
> GO m.nSaveRec2
>ENDIF
>
>The statement TYPE("m.cChildKey")#TYPE('oAddRecKeyValue') is always .T. because TYPE("m.cChildKey") is always Character type. cChildKey is assigned with my key with type Integer. How do I make the code looks at my key type instead of the property type.

OK, I just found the article in MS acknowleging the bug. I really don't know what to do now. Any suggestion?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform